Commit cf86c0a2cfd4af46101dc3a90d78bdbacce41fd9
1 parent
3043ba90
Exists in
master
and in
6 other branches
FIX: Mask manager
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
invesalius/gui/data_notebook.py
... | ... | @@ -80,6 +80,16 @@ class MasksListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
80 | 80 | ps.Publisher().subscribe(self.EditMaskColour, |
81 | 81 | 'Change mask colour in notebook') |
82 | 82 | |
83 | + ps.Publisher().subscribe(self.OnChangeCurrentMask, 'Change mask selected') | |
84 | + | |
85 | + def OnChangeCurrentMask(self, pubsub_evt): | |
86 | + | |
87 | + mask_index = pubsub_evt.data | |
88 | + self.SetItemImage(mask_index, 1) | |
89 | + for key in self.mask_list_index.keys(): | |
90 | + if key != mask_index: | |
91 | + self.SetItemImage(key, 0) | |
92 | + | |
83 | 93 | def __init_columns(self): |
84 | 94 | |
85 | 95 | self.InsertColumn(0, "", wx.LIST_FORMAT_CENTER) | ... | ... |
invesalius/gui/task_slice.py
... | ... | @@ -295,7 +295,6 @@ class MaskProperties(wx.Panel): |
295 | 295 | def SelectMaskName(self, pubsub_evt): |
296 | 296 | index = pubsub_evt.data |
297 | 297 | self.combo_mask_name.SetSelection(index) |
298 | - print dir(self.combo_mask_name) | |
299 | 298 | |
300 | 299 | def SetThresholdValues(self, pubsub_evt): |
301 | 300 | thresh_min, thresh_max = pubsub_evt.data | ... | ... |