Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit b861b6f

Browse files
committed
cast to int
1 parent 4c514b4 commit b861b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pugdebug/gui/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def set_widget_value(self, widget, value):
143143
elif isinstance(widget, QSpinBox):
144144
widget.setValue(int(value))
145145
elif isinstance(widget, QCheckBox):
146-
widget.setCheckState(value)
146+
widget.setCheckState(int(value))
147147
else:
148148
name = type(widget).__name__
149149
raise Exception("Don't know how to set a value for %s" % name)

0 commit comments

Comments
 (0)