From b1dff250905c4fa2350d3e7f97f15c67aceac4bc Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 17 Dec 2023 19:30:06 +0300 Subject: [PATCH] Feat(wx): Create main window [skip ci] --- m_librarian/wx/Application.py | 8 +++++++- scripts/ml-wx.py | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/m_librarian/wx/Application.py b/m_librarian/wx/Application.py index d1e95cf..d20868c 100644 --- a/m_librarian/wx/Application.py +++ b/m_librarian/wx/Application.py @@ -1,4 +1,10 @@ import wx + class Application(wx.App): - pass + + def OnInit(self): + frame = wx.Frame(None, -1, u"m_Librarian") + frame.Show(True) + self.SetTopWindow(frame) + return True diff --git a/scripts/ml-wx.py b/scripts/ml-wx.py index f10e31c..a482068 100755 --- a/scripts/ml-wx.py +++ b/scripts/ml-wx.py @@ -8,6 +8,7 @@ def main(): if len(sys.argv) > 1: sys.exit("This program doesn't accept any arguments") app = Application() + app.MainLoop() if __name__ == '__main__': -- 2.39.5