Skip to content

Commit

Permalink
edited code comments for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar authored Feb 14, 2024
1 parent b430476 commit d0b8c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygame_gui/elements/ui_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UIButton(UIElement):
unique event.
:param visible: Whether the element is visible by default. Warning - container visibility may
override this.
:param command: Functions to be called when an event triggered by this element.
:param command: Functions to be called when an event is triggered by this element.
:param text_kwargs: a dictionary of variable arguments to pass to the translated string
useful when you have multiple translations that need variables inserted
in the middle.
Expand Down Expand Up @@ -386,7 +386,7 @@ def bind(self, event:int, function:Callable = None):

def on_self_event(self, event:int, data:Dict[str, Any]=None):
"""
Called when a event triggered by this element. Handles these events either by posting the event back
Called when an event is triggered by this element. Handles these events either by posting the event back
to the event queue, or by running a function supplied by the user.
:param event: The event triggered.
Expand Down

0 comments on commit d0b8c98

Please sign in to comment.