Commit 88dcce85946672cb53ac204dd3d76b744d2b8d13
1 parent
6cfc8f4e
Exists in
master
and in
38 other branches
USing EVT_SPINCTRL instead of EVT_TEXT on brush size
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/gui/task_slice.py
| @@ -682,7 +682,7 @@ class EditionTools(wx.Panel): | @@ -682,7 +682,7 @@ class EditionTools(wx.Panel): | ||
| 682 | spin_brush_size = wx.SpinCtrl(self, -1, "", size=(width + 20, -1)) | 682 | spin_brush_size = wx.SpinCtrl(self, -1, "", size=(width + 20, -1)) |
| 683 | spin_brush_size.SetRange(1,100) | 683 | spin_brush_size.SetRange(1,100) |
| 684 | spin_brush_size.SetValue(const.BRUSH_SIZE) | 684 | spin_brush_size.SetValue(const.BRUSH_SIZE) |
| 685 | - spin_brush_size.Bind(wx.EVT_TEXT, self.OnBrushSize) | 685 | + spin_brush_size.Bind(wx.EVT_SPINCTRL, self.OnBrushSize) |
| 686 | self.spin = spin_brush_size | 686 | self.spin = spin_brush_size |
| 687 | 687 | ||
| 688 | combo_brush_op = wx.ComboBox(self, -1, "", size=(15,-1), | 688 | combo_brush_op = wx.ComboBox(self, -1, "", size=(15,-1), |
| @@ -842,7 +842,7 @@ class WatershedTool(EditionTools): | @@ -842,7 +842,7 @@ class WatershedTool(EditionTools): | ||
| 842 | spin_brush_size = wx.SpinCtrl(self, -1, "", size=(width + 20, -1)) | 842 | spin_brush_size = wx.SpinCtrl(self, -1, "", size=(width + 20, -1)) |
| 843 | spin_brush_size.SetRange(1,100) | 843 | spin_brush_size.SetRange(1,100) |
| 844 | spin_brush_size.SetValue(const.BRUSH_SIZE) | 844 | spin_brush_size.SetValue(const.BRUSH_SIZE) |
| 845 | - spin_brush_size.Bind(wx.EVT_TEXT, self.OnBrushSize) | 845 | + spin_brush_size.Bind(wx.EVT_SPINCTRL, self.OnBrushSize) |
| 846 | self.spin = spin_brush_size | 846 | self.spin = spin_brush_size |
| 847 | 847 | ||
| 848 | combo_brush_op = wx.ComboBox(self, -1, "", size=(15,-1), | 848 | combo_brush_op = wx.ComboBox(self, -1, "", size=(15,-1), |