From 2fb971d99cb89d0378131c249a66525723ea97ce Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 19 Dec 2023 19:06:39 +0300 Subject: [PATCH] Feat(wx): Get initial window size from session config Else use sensible defaults. [skip ci] --- m_librarian/wx/Application.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m_librarian/wx/Application.py b/m_librarian/wx/Application.py index a12eb0e..bebaa27 100644 --- a/m_librarian/wx/Application.py +++ b/m_librarian/wx/Application.py @@ -9,8 +9,11 @@ class MainWindow(wx.Frame): def __init__(self): session_config = get_session_config() + width = session_config.getint('main_window', 'width', 600) + height = session_config.getint('main_window', 'height', 400) super(wx.Frame, self).__init__( parent=None, id=-1, title=u"m_Librarian", + size=wx.Size(width=width, height=height), ) self.InitMenu() self.Show(True) -- 2.39.5