Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvolconst <20997907+volconst@users.noreply.github.com>2022-05-07 12:32:48 +0300
committervolconst <20997907+volconst@users.noreply.github.com>2022-05-07 12:32:48 +0300
commit302ed8a1aa012552529d5abd30f4b40b0b429580 (patch)
treef94a428dfcc8a5fd810b5e1bc3cf71c67f8d9bc6
parentb276cab4f21f9d6083349402d0af821dbc6cd6e4 (diff)
Fix TypeError when adjusting speed, flow rate
Fixes #1258
-rw-r--r--printrun/gui/controls.py4
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):