From 8a6385256f383e1cc6c896d82bcf97236edb5279 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Mon, 3 Sep 2012 19:00:30 +0000 Subject: [PATCH] ENH: A workaround to refresh the window when it opens in the Win XP and 7 --- invesalius/gui/frame.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 9209c57..797cdd7 100755 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -58,12 +58,14 @@ class Frame(wx.Frame): self.Center(wx.BOTH) icon_path = os.path.join(const.ICON_DIR, "invesalius.ico") self.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO)) + if sys.platform != 'darwin': self.Maximize() - #Necessary update AUI (statusBar in special) - #when maximized in the Win 7 and XP - #self.SetSize(self.GetSize()) - #self.SetSize(wx.Size(1024, 748)) + + #Necessary update AUI (statusBar in special) + #when maximized in the Win 7 and XP + self.SetSize(self.GetSize()) + #self.SetSize(wx.Size(1024, 748)) # Set menus, status and task bar -- libgit2 0.21.2