Commit 6f4166cd5faa2eec40aa6da75b3b277c35546f68

Authored by Thiago Franco de Moraes
1 parent 61f70f41

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):