From 6f4166cd5faa2eec40aa6da75b3b277c35546f68 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 28 May 2015 14:51:51 -0300 Subject: [PATCH] Disabling threshold gradient when user select draw or erase in manual edition --- invesalius/gui/task_slice.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/invesalius/gui/task_slice.py b/invesalius/gui/task_slice.py index 3fa7f2e..780dc5c 100644 --- a/invesalius/gui/task_slice.py +++ b/invesalius/gui/task_slice.py @@ -800,6 +800,10 @@ class EditionTools(wx.Panel): def OnComboBrushOp(self, evt): brush_op_id = evt.GetSelection() Publisher.sendMessage('Set edition operation', brush_op_id) + if brush_op_id == const.BRUSH_THRESH: + self.gradient_thresh.Enable() + else: + self.gradient_thresh.Disable() class WatershedTool(EditionTools): -- libgit2 0.21.2