From: Oleg Broytman Date: Sun, 17 Dec 2023 16:30:06 +0000 (+0300) Subject: Feat(wx): Create main window X-Git-Tag: 0.3.0~9^2~42 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b1dff250905c4fa2350d3e7f97f15c67aceac4bc;p=m_librarian.git Feat(wx): Create main window [skip ci] --- 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__':