Commit dcdef93b38da039faf3aaa84386c7496cf903d20
1 parent
b0ca096e
Exists in
master
and in
6 other branches
FIX: Maximize frame always at begin
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
invesalius/gui/frame.py
@@ -55,12 +55,14 @@ class Frame(wx.Frame): | @@ -55,12 +55,14 @@ class Frame(wx.Frame): | ||
55 | def __init__(self, prnt): | 55 | def __init__(self, prnt): |
56 | wx.Frame.__init__(self, id=-1, name='', parent=prnt, | 56 | wx.Frame.__init__(self, id=-1, name='', parent=prnt, |
57 | pos=wx.Point(0, 0), | 57 | pos=wx.Point(0, 0), |
58 | - size=wx.Size(1024, 768), #size = wx.DisplaySize(), | 58 | + size=wx.Size(1024, 748), #size = wx.DisplaySize(), |
59 | style=wx.DEFAULT_FRAME_STYLE, title='InVesalius 3') | 59 | style=wx.DEFAULT_FRAME_STYLE, title='InVesalius 3') |
60 | self.Center(wx.BOTH) | 60 | self.Center(wx.BOTH) |
61 | self.SetIcon(wx.Icon(os.path.join(const.ICON_DIR, "invesalius.ico"), | 61 | self.SetIcon(wx.Icon(os.path.join(const.ICON_DIR, "invesalius.ico"), |
62 | wx.BITMAP_TYPE_ICO)) | 62 | wx.BITMAP_TYPE_ICO)) |
63 | 63 | ||
64 | + self.Maximize() | ||
65 | + #self.MacSetMetalAppearance(True) | ||
64 | # Set menus, status and task bar | 66 | # Set menus, status and task bar |
65 | self.SetMenuBar(MenuBar(self)) | 67 | self.SetMenuBar(MenuBar(self)) |
66 | self.SetStatusBar(StatusBar(self)) | 68 | self.SetStatusBar(StatusBar(self)) |