Commit a7d53f568ba9af31cead632866902031a6548364

Authored by Paulo Henrique Junqueira Amorim
1 parent 530b2db1

FIX: Maximized Window in the win and linux2 and fixed error with icon

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
invesalius/gui/frame.py
@@ -57,6 +57,11 @@ class Frame(wx.Frame): @@ -57,6 +57,11 @@ class Frame(wx.Frame):
57 self.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO)) 57 self.SetIcon(wx.Icon(icon_path, wx.BITMAP_TYPE_ICO))
58 if sys.platform != 'darwin': 58 if sys.platform != 'darwin':
59 self.Maximize() 59 self.Maximize()
  60 + #Necessary update AUI (statusBar in special)
  61 + #when maximized in the Win 7 and XP
  62 + #self.SetSize(self.GetSize())
  63 + self.SetSize(wx.Size(1024, 748))
  64 +
60 65
61 # Set menus, status and task bar 66 # Set menus, status and task bar
62 self.SetMenuBar(MenuBar(self)) 67 self.SetMenuBar(MenuBar(self))
@@ -1094,7 +1099,7 @@ class LayoutToolBar(wx.ToolBar): @@ -1094,7 +1099,7 @@ class LayoutToolBar(wx.ToolBar):
1094 else: 1099 else:
1095 # Bitmaps for show/hide task panel item 1100 # Bitmaps for show/hide task panel item
1096 p = os.path.join(d, "layout_data_only.gif") 1101 p = os.path.join(d, "layout_data_only.gif")
1097 - self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) 1102 + self.BMP_WITH_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF)
1098 1103
1099 p = os.path.join(d, "layout_full.gif") 1104 p = os.path.join(d, "layout_full.gif")
1100 self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) 1105 self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF)