Skip to content

Commit

Permalink
Fix slider to convert floats to ints when passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Dec 10, 2022
1 parent 31b2b88 commit 9a3deaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui_builder/widgets/wx_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ def __init__(self, *args, **kwargs):
self.Bind(wx.EVT_CHAR, self.onSliderChar)

def SetValue(self, i):
i = int(i)
super(FixedSlider, self).SetValue(i)
ctypes.windll.user32.NotifyWinEvent(
self.EVENT_OBJECT_VALUECHANGE,
Expand Down

0 comments on commit 9a3deaf

Please sign in to comment.