diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 9b1d3f2..3ac0186 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -113,6 +113,7 @@ class Viewer(wx.Panel): "MouseMoveEvent": self.OnBrushMove, "LeftButtonPressEvent": self.OnBrushClick, "LeftButtonReleaseEvent": self.OnMouseRelease, + "EnterEvent": self.OnEnterInteractor, "LeaveEvent": self.OnLeaveInteractor } } @@ -130,6 +131,9 @@ class Viewer(wx.Panel): style.AddObserver(event, action[mode][event]) + def OnEnterInteractor(self, obj, evt): + print dir(self.GetCursor()) + def OnLeaveInteractor(self, obj, evt): for slice_data in self.slice_data_list: slice_data.cursor.Show(0) -- libgit2 0.21.2