diff options
author | volconst <20997907+volconst@users.noreply.github.com> | 2022-05-07 12:32:48 +0300 |
---|---|---|
committer | volconst <20997907+volconst@users.noreply.github.com> | 2022-05-07 12:32:48 +0300 |
commit | 302ed8a1aa012552529d5abd30f4b40b0b429580 (patch) | |
tree | f94a428dfcc8a5fd810b5e1bc3cf71c67f8d9bc6 | |
parent | b276cab4f21f9d6083349402d0af821dbc6cd6e4 (diff) |
Fix TypeError when adjusting speed, flow rate
Fixes #1258
-rw-r--r-- | printrun/gui/controls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/printrun/gui/controls.py b/printrun/gui/controls.py index c4f2877..929c25a 100644 --- a/printrun/gui/controls.py +++ b/printrun/gui/controls.py @@ -197,7 +197,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None, mini_mode def speedslider_spin(event): value = root.speed_spin.GetValue() root.speed_setbtn.SetBackgroundColour("red") - root.speed_slider.SetValue(value) + root.speed_slider.SetValue(int(value)) root.speed_spin.Bind(wx.EVT_SPINCTRLDOUBLE, speedslider_spin) def speedslider_scroll(event): @@ -231,7 +231,7 @@ def add_extra_controls(self, root, parentpanel, extra_buttons = None, mini_mode def flowslider_spin(event): value = root.flow_spin.GetValue() root.flow_setbtn.SetBackgroundColour("red") - root.flow_slider.SetValue(value) + root.flow_slider.SetValue(int(value)) root.flow_spin.Bind(wx.EVT_SPINCTRLDOUBLE, flowslider_spin) def flowslider_scroll(event): |