Skip to content

Commit

Permalink
feat: click on button return
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Oct 22, 2022
1 parent fc30b68 commit 62bcf02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions magicgui/backends/_qtpy/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ def __init__(self, **kwargs):
QBaseValueWidget.__init__(
self, QtW.QPushButton, "isChecked", "setChecked", "clicked", **kwargs
)
# make enter/return "click" the button when focused.
self._qwidget.setAutoDefault(True)


class CheckBox(QBaseButtonWidget):
Expand Down

0 comments on commit 62bcf02

Please sign in to comment.