]> git.phdru.name Git - m_librarian.git/commitdiff
Feat(wx): Create main window
authorOleg Broytman <phd@phdru.name>
Sun, 17 Dec 2023 16:30:06 +0000 (19:30 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 17 Dec 2023 20:18:25 +0000 (23:18 +0300)
[skip ci]

m_librarian/wx/Application.py
scripts/ml-wx.py

index d1e95cf4459e36d494fad3e8506dc0f4cd1d8537..d20868cdad6863f96c85a16c119bbf90a76ec199 100644 (file)
@@ -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
index f10e31c272e8a05c2f053215b7fe32d2d7a87de5..a4820680a4457e2b8c248052dea9578aef05e524 100755 (executable)
@@ -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__':