]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/MDIDemo.py
fixed array tests compilation and a bug in obj array test
[wxWidgets.git] / wxPython / demo / MDIDemo.py
index 6251ec4a41b5cb4dad84e9f0b4e3678d6585d12e..5670f9377c66f1100e8536734303898c38c4c2da 100644 (file)
@@ -38,16 +38,17 @@ class MyParentFrame(wxMDIParentFrame):
 
 #----------------------------------------------------------------------
 
 
 #----------------------------------------------------------------------
 
-class MyApp(wxApp):
-    def OnInit(self):
-        frame = MyParentFrame()
-        frame.Show(true)
-        self.SetTopWindow(frame)
-        return true
+if __name__ == '__main__':
+    class MyApp(wxApp):
+        def OnInit(self):
+            frame = MyParentFrame()
+            frame.Show(true)
+            self.SetTopWindow(frame)
+            return true
 
 
 
 
-app = MyApp(0)
-app.MainLoop()
+    app = MyApp(0)
+    app.MainLoop()