From 14fc6905ec627337a416471cf8d5722968cf9824 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 3 Jun 2015 16:03:32 -0300 Subject: [PATCH] Closing in mac app --- invesalius/gui/frame.py | 3 ++- invesalius/invesalius.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 895beb0..b5e30c2 100644 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -251,7 +251,8 @@ class Frame(wx.Frame): Exit InVesalius. """ self.Destroy() - #sys.exit(0) + if hasattr(sys,"frozen") and sys.platform == 'darwin': + sys.exit(0) def _HideContentPanel(self, pubsub_evt): """ diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index dec7def..b6d0faf 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -82,6 +82,9 @@ class InVesalius(wx.App): def Startup2(self): self.control = self.splash.control self.frame = self.splash.main + self.SetTopWindow(self.frame) + self.frame.Show() + self.frame.Raise() # ------------------------------------------------------------------ -- libgit2 0.21.2