Skip to content

Commit

Permalink
fix for pyside2
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Mar 24, 2021
1 parent e4c3135 commit 27e22bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magicgui/backends/_qtpy/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def _add_button(self, label: str, data: Any = None):

def _remove_button(self, btn):
self._btn_group.removeButton(btn)
self._qwidget.layout().removeWidget(btn)
btn.setParent(None)
btn.deleteLater()

def _mgui_set_choice(self, choice_name: str, data: Any) -> None:
Expand Down

0 comments on commit 27e22bd

Please sign in to comment.