From 0c6c367653b58fc028ddd251171d4181e3ccd6ca Mon Sep 17 00:00:00 2001 From: tatiana Date: Mon, 20 Jul 2009 12:20:18 +0000 Subject: [PATCH] FIX: Slice interaction / removed volume tests under MacOS --- invesalius/data/slice_.py | 3 ++- invesalius/data/viewer_slice.py | 5 +++-- invesalius/data/viewer_volume.py | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index 768b19d..0b72ca0 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -76,7 +76,8 @@ class Slice(object): colour = mask.colour threshold = mask.threshold_range - ps.Publisher().sendMessage('Create surface', (imagedata,colour,threshold)) + ps.Publisher().sendMessage('Create surface', + (imagedata,colour,threshold)) def OnChangeCurrentMaskColour(self, pubsub_evt): colour_wx = pubsub_evt.data diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 0a15b35..6b11cdc 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -108,8 +108,9 @@ class Viewer(wx.Panel): # Bind method according to current mode style = self.style - for event in action: - style.AddObserver(event, action[mode][event]) + for event in action[mode]: + style.AddObserver(event, + action[mode][event]) def OnMouseClick(self, obj, evt_vtk): diff --git a/invesalius/data/viewer_volume.py b/invesalius/data/viewer_volume.py index adf0a4a..0c5ba65 100755 --- a/invesalius/data/viewer_volume.py +++ b/invesalius/data/viewer_volume.py @@ -70,7 +70,8 @@ class Viewer(wx.Panel): def __bind_events_wx(self): - self.Bind(wx.EVT_SIZE, self.OnSize) + #self.Bind(wx.EVT_SIZE, self.OnSize) + pass def OnSize(self, evt): print "viewer_volume :: OnSize" -- libgit2 0.21.2