Commit 8a6385256f383e1cc6c896d82bcf97236edb5279
1 parent
ce497f54
Exists in
master
and in
67 other branches
ENH: A workaround to refresh the window when it opens in the Win XP and 7
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
invesalius/gui/frame.py
@@ -58,12 +58,14 @@ class Frame(wx.Frame): | @@ -58,12 +58,14 @@ class Frame(wx.Frame): | ||
58 | self.Center(wx.BOTH) | 58 | self.Center(wx.BOTH) |
59 | icon_path = os.path.join(const.ICON_DIR, "invesalius.ico") | 59 | icon_path = os.path.join(const.ICON_DIR, "invesalius.ico") |
60 | self.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO)) | 60 | self.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO)) |
61 | + | ||
61 | if sys.platform != 'darwin': | 62 | if sys.platform != 'darwin': |
62 | self.Maximize() | 63 | self.Maximize() |
63 | - #Necessary update AUI (statusBar in special) | ||
64 | - #when maximized in the Win 7 and XP | ||
65 | - #self.SetSize(self.GetSize()) | ||
66 | - #self.SetSize(wx.Size(1024, 748)) | 64 | + |
65 | + #Necessary update AUI (statusBar in special) | ||
66 | + #when maximized in the Win 7 and XP | ||
67 | + self.SetSize(self.GetSize()) | ||
68 | + #self.SetSize(wx.Size(1024, 748)) | ||
67 | 69 | ||
68 | 70 | ||
69 | # Set menus, status and task bar | 71 | # Set menus, status and task bar |