Commit 60d2aa6a9c4cf9c771a3693c623a6df6d14157e6

Authored by tfmoraes
1 parent 56e99a92

The mouse cursor is not showed when the user is editing a mask

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
invesalius/data/viewer_slice.py
@@ -462,11 +462,12 @@ class Viewer(wx.Panel): @@ -462,11 +462,12 @@ class Viewer(wx.Panel):
462 evt.StartSpin() 462 evt.StartSpin()
463 463
464 def OnEnterInteractor(self, evt, obj): 464 def OnEnterInteractor(self, evt, obj):
465 - #self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_BLANK))  
466 - pass 465 + self.slice_data.cursor.Show()
  466 + self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_BLANK))
467 467
468 def OnLeaveInteractor(self, evt, obj): 468 def OnLeaveInteractor(self, evt, obj):
469 self.slice_data.cursor.Show(0) 469 self.slice_data.cursor.Show(0)
  470 + self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_DEFAULT))
470 self.interactor.Render() 471 self.interactor.Render()
471 472
472 def SetWLText(self, window_width, window_level): 473 def SetWLText(self, window_width, window_level):
@@ -753,7 +754,6 @@ class Viewer(wx.Panel): @@ -753,7 +754,6 @@ class Viewer(wx.Panel):
753 # TODO: Improve! 754 # TODO: Improve!
754 #for i in self.slice_data_list: 755 #for i in self.slice_data_list:
755 #i.cursor.Show(0) 756 #i.cursor.Show(0)
756 - self.slice_data.cursor.Show()  
757 757
758 self.pick.Pick(mouse_x, mouse_y, 0, render) 758 self.pick.Pick(mouse_x, mouse_y, 0, render)
759 759