]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/MDIDemo.py
Tidied space and tabs in wxMac files
[wxWidgets.git] / wxPython / demo / MDIDemo.py
index 6251ec4a41b5cb4dad84e9f0b4e3678d6585d12e..3ae510ea7c5793aa327edf810a5c326abd43197a 100644 (file)
@@ -38,16 +38,18 @@ class MyParentFrame(wxMDIParentFrame):
 
 #----------------------------------------------------------------------
 
-class MyApp(wxApp):
-    def OnInit(self):
-        frame = MyParentFrame()
-        frame.Show(true)
-        self.SetTopWindow(frame)
-        return true
-
-
-app = MyApp(0)
-app.MainLoop()
+if __name__ == '__main__':
+    class MyApp(wxApp):
+        def OnInit(self):
+            wxInitAllImageHandlers()
+            frame = MyParentFrame()
+            frame.Show(true)
+            self.SetTopWindow(frame)
+            return true
+
+
+    app = MyApp(0)
+    app.MainLoop()