Commit 0c6c367653b58fc028ddd251171d4181e3ccd6ca

Authored by tatiana
1 parent 491e1329

FIX: Slice interaction / removed volume tests under MacOS

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
... ... @@ -70,7 +70,8 @@ class Viewer(wx.Panel):
70 70  
71 71  
72 72 def __bind_events_wx(self):
73   - self.Bind(wx.EVT_SIZE, self.OnSize)
  73 + #self.Bind(wx.EVT_SIZE, self.OnSize)
  74 + pass
74 75  
75 76 def OnSize(self, evt):
76 77 print "viewer_volume :: OnSize"
... ...