diff --git a/invesalius/data/slice_.py b/invesalius/data/slice_.py index d854bbe..a8f9ee9 100644 --- a/invesalius/data/slice_.py +++ b/invesalius/data/slice_.py @@ -107,6 +107,10 @@ class Slice(object): if (state in const.SLICE_STYLES): new_state = self.interaction_style.RemoveState(state) ps.Publisher().sendMessage('Set slice interaction style', new_state) + + if (state == const.SLICE_STATE_EDITOR): + ps.Publisher().sendMessage('Set interactor default cursor') + def OnCloseProject(self, pubsub_evt): self.CloseProject() diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index c54523b..414ffe1 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -836,8 +836,11 @@ class Viewer(wx.Panel): ps.Publisher().subscribe(self.OnHideText, 'Hide text actors on viewers') ps.Publisher().subscribe(self.OnExportPicture,'Export picture to file') - - + ps.Publisher().subscribe(self.SetDefaultCursor, 'Set interactor default cursor') + + def SetDefaultCursor(self, pusub_evt): + self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_DEFAULT)) + def OnExportPicture(self, pubsub_evt): ps.Publisher().sendMessage('Begin busy cursor') view_prop_list = [] -- libgit2 0.21.2