From b27b4dad54672d6c9952cb1f5237aa94c11aacef Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Wed, 20 Jan 2010 16:13:31 +0000 Subject: [PATCH] ENH: Busy cursor in open project --- invesalius/control.py | 4 +++- invesalius/gui/frame.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/invesalius/control.py b/invesalius/control.py index a113a2c..ef45d22 100755 --- a/invesalius/control.py +++ b/invesalius/control.py @@ -176,6 +176,7 @@ class Controller(): def OpenProject(self, filepath): + ps.Publisher().sendMessage('Begin busy cursor') path = os.path.abspath(filepath) proj = prj.Project() @@ -187,7 +188,7 @@ class Controller(): surface = srf.Surface() surface._set_class_index(proj.last_surface_index) - + self.LoadProject() session = ses.Session() @@ -310,6 +311,7 @@ class Controller(): ps.Publisher().sendMessage('Show content panel') ps.Publisher().sendMessage('Update AUI') ps.Publisher().sendMessage('Load slice plane') + ps.Publisher().sendMessage('End busy cursor') def CreateAnalyzeProject(self, imagedata): proj = prj.Project() diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 5cb5b21..7be23c3 100755 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -211,7 +211,6 @@ class Frame(wx.Frame): aui_manager.GetPane("Data").Show(1) aui_manager.GetPane("Tasks").Show(1) aui_manager.Update() - ps.Publisher().sendMessage('End busy cursor') def HideContentPanel(self, pubsub_evt): aui_manager = self.aui_manager -- libgit2 0.21.2