Commit 6f4166cd5faa2eec40aa6da75b3b277c35546f68
1 parent
61f70f41
Exists in
master
and in
2 other branches
Disabling threshold gradient when user select draw or erase in manual edition
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
invesalius/gui/task_slice.py
@@ -800,6 +800,10 @@ class EditionTools(wx.Panel): | @@ -800,6 +800,10 @@ class EditionTools(wx.Panel): | ||
800 | def OnComboBrushOp(self, evt): | 800 | def OnComboBrushOp(self, evt): |
801 | brush_op_id = evt.GetSelection() | 801 | brush_op_id = evt.GetSelection() |
802 | Publisher.sendMessage('Set edition operation', brush_op_id) | 802 | Publisher.sendMessage('Set edition operation', brush_op_id) |
803 | + if brush_op_id == const.BRUSH_THRESH: | ||
804 | + self.gradient_thresh.Enable() | ||
805 | + else: | ||
806 | + self.gradient_thresh.Disable() | ||
803 | 807 | ||
804 | 808 | ||
805 | class WatershedTool(EditionTools): | 809 | class WatershedTool(EditionTools): |