Skip to content

Commit

Permalink
add button clicked alias (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Aug 5, 2021
1 parent 481f665 commit 1f3a503
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magicgui/widgets/_bases/button_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ def text(self):
@text.setter
def text(self, value):
self._widget._mgui_set_text(value)

@property
def clicked(self) -> EventEmitter:
"""Alias for changed event."""
return self.changed

0 comments on commit 1f3a503

Please sign in to comment.