Skip to content

Commit

Permalink
use 'parent=window' instead of just 'window'
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Sep 22, 2019
1 parent 668953d commit b702cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msl/examples/qt/toggle_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def show():
window = QtWidgets.QWidget()
window.setWindowTitle('Toggle Switch Example')
hbox = QtWidgets.QHBoxLayout()
ts = ToggleSwitch(window)
ts = ToggleSwitch(parent=window)
ts.toggled.connect(print_state)
hbox.addWidget(ts)
window.setLayout(hbox)
Expand Down

0 comments on commit b702cb7

Please sign in to comment.