]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/MDIDemo.py
Reduce flicker in the demo when image is dragged out of the frame
[wxWidgets.git] / wxPython / demo / MDIDemo.py
index 0e3b0ecad5e2ed2fb095430f28d47fd66e983be4..5670f9377c66f1100e8536734303898c38c4c2da 100644 (file)
@@ -19,7 +19,7 @@ class MyParentFrame(wxMDIParentFrame):
         menubar.Append(menu, "&File")
         self.SetMenuBar(menubar)
 
         menubar.Append(menu, "&File")
         self.SetMenuBar(menubar)
 
-        #self.CreateStatusBar()
+        self.CreateStatusBar()
 
         EVT_MENU(self, 5000, self.OnNewWindow)
         EVT_MENU(self, 5001, self.OnExit)
 
         EVT_MENU(self, 5000, self.OnNewWindow)
         EVT_MENU(self, 5001, self.OnExit)
@@ -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()