diff --git a/gui/wxpython/gui_core/wrap.py b/gui/wxpython/gui_core/wrap.py index 325be0cf2bf..941e2789039 100644 --- a/gui/wxpython/gui_core/wrap.py +++ b/gui/wxpython/gui_core/wrap.py @@ -202,6 +202,12 @@ def SetToolTip(self, tip): else: wx.SpinCtrl.SetToolTipString(self, tip) + def SetRange(self, minVal, maxVal): + wx.SpinCtrl.SetRange(self, int(minVal), int(maxVal)) + + def SetValue(self, value): + wx.SpinCtrl.SetValue(self, int(value)) + class FloatSpin(fs.FloatSpin): """Wrapper around fs.FloatSpin to have more control