From: Oleg Broytman Date: Tue, 19 Dec 2023 16:06:39 +0000 (+0300) Subject: Feat(wx): Get initial window size from session config X-Git-Tag: 0.3.0~9^2~36 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2fb971d99cb89d0378131c249a66525723ea97ce;p=m_librarian.git Feat(wx): Get initial window size from session config Else use sensible defaults. [skip ci] --- 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)