Commit 0c6c367653b58fc028ddd251171d4181e3ccd6ca
1 parent
491e1329
Exists in
master
and in
68 other branches
FIX: Slice interaction / removed volume tests under MacOS
Showing
3 changed files
with
7 additions
and
4 deletions
Show diff stats
invesalius/data/slice_.py
... | ... | @@ -76,7 +76,8 @@ class Slice(object): |
76 | 76 | colour = mask.colour |
77 | 77 | threshold = mask.threshold_range |
78 | 78 | |
79 | - ps.Publisher().sendMessage('Create surface', (imagedata,colour,threshold)) | |
79 | + ps.Publisher().sendMessage('Create surface', | |
80 | + (imagedata,colour,threshold)) | |
80 | 81 | |
81 | 82 | def OnChangeCurrentMaskColour(self, pubsub_evt): |
82 | 83 | colour_wx = pubsub_evt.data | ... | ... |
invesalius/data/viewer_slice.py
... | ... | @@ -108,8 +108,9 @@ class Viewer(wx.Panel): |
108 | 108 | # Bind method according to current mode |
109 | 109 | style = self.style |
110 | 110 | |
111 | - for event in action: | |
112 | - style.AddObserver(event, action[mode][event]) | |
111 | + for event in action[mode]: | |
112 | + style.AddObserver(event, | |
113 | + action[mode][event]) | |
113 | 114 | |
114 | 115 | |
115 | 116 | def OnMouseClick(self, obj, evt_vtk): | ... | ... |
invesalius/data/viewer_volume.py