From 60d2aa6a9c4cf9c771a3693c623a6df6d14157e6 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Fri, 23 Mar 2012 14:13:35 +0000 Subject: [PATCH] The mouse cursor is not showed when the user is editing a mask --- invesalius/data/viewer_slice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 784ca00..822d4d5 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -462,11 +462,12 @@ class Viewer(wx.Panel): evt.StartSpin() def OnEnterInteractor(self, evt, obj): - #self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_BLANK)) - pass + self.slice_data.cursor.Show() + self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_BLANK)) def OnLeaveInteractor(self, evt, obj): self.slice_data.cursor.Show(0) + self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_DEFAULT)) self.interactor.Render() def SetWLText(self, window_width, window_level): @@ -753,7 +754,6 @@ class Viewer(wx.Panel): # TODO: Improve! #for i in self.slice_data_list: #i.cursor.Show(0) - self.slice_data.cursor.Show() self.pick.Pick(mouse_x, mouse_y, 0, render) -- libgit2 0.21.2