Commit d5ae744d9e77f569619e8c53fa960dcd1ec5f883
1 parent
8c6b6414
Exists in
master
and in
6 other branches
ENH: Hidding the cursor when the user leave the interactor
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -113,6 +113,7 @@ class Viewer(wx.Panel): |
113 | 113 | "MouseMoveEvent": self.OnBrushMove, |
114 | 114 | "LeftButtonPressEvent": self.OnBrushClick, |
115 | 115 | "LeftButtonReleaseEvent": self.OnMouseRelease, |
116 | + "EnterEvent": self.OnEnterInteractor, | |
116 | 117 | "LeaveEvent": self.OnLeaveInteractor |
117 | 118 | } |
118 | 119 | } |
... | ... | @@ -130,6 +131,9 @@ class Viewer(wx.Panel): |
130 | 131 | style.AddObserver(event, |
131 | 132 | action[mode][event]) |
132 | 133 | |
134 | + def OnEnterInteractor(self, obj, evt): | |
135 | + print dir(self.GetCursor()) | |
136 | + | |
133 | 137 | def OnLeaveInteractor(self, obj, evt): |
134 | 138 | for slice_data in self.slice_data_list: |
135 | 139 | slice_data.cursor.Show(0) | ... | ... |