From a7d53f568ba9af31cead632866902031a6548364 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Thu, 18 Feb 2010 14:08:40 +0000 Subject: [PATCH] FIX: Maximized Window in the win and linux2 and fixed error with icon --- invesalius/gui/frame.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/invesalius/gui/frame.py b/invesalius/gui/frame.py index 863b751..8bc5384 100755 --- a/invesalius/gui/frame.py +++ b/invesalius/gui/frame.py @@ -57,6 +57,11 @@ class Frame(wx.Frame): 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)) + # Set menus, status and task bar self.SetMenuBar(MenuBar(self)) @@ -1094,7 +1099,7 @@ class LayoutToolBar(wx.ToolBar): else: # Bitmaps for show/hide task panel item p = os.path.join(d, "layout_data_only.gif") - self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) + self.BMP_WITH_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) p = os.path.join(d, "layout_full.gif") self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) -- libgit2 0.21.2