diff options
author | kliment <kliment@0xfb.com> | 2022-05-09 09:00:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 09:00:11 +0300 |
commit | 10718fa31c277e35d93b67fc7075aa68cc79da3c (patch) | |
tree | 9606450ef20ccf395c0f0b1f613453d49eb4f110 | |
parent | 60d541e0519802e5ebb3c6e3b1db242bf91c2108 (diff) | |
parent | 302ed8a1aa012552529d5abd30f4b40b0b429580 (diff) |
Merge pull request #1262 from volconst/dbl-spinner
Fix TypeError when adjusting speed, flow rate
-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): |