Skip to content

Commit 9a3deaf

Browse files
committed
Fix slider to convert floats to ints when passed in
1 parent 31b2b88 commit 9a3deaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gui_builder/widgets/wx_widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ def __init__(self, *args, **kwargs):
656656
self.Bind(wx.EVT_CHAR, self.onSliderChar)
657657

658658
def SetValue(self, i):
659+
i = int(i)
659660
super(FixedSlider, self).SetValue(i)
660661
ctypes.windll.user32.NotifyWinEvent(
661662
self.EVENT_OBJECT_VALUECHANGE,

0 commit comments

Comments
 (0)