X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..3dc0174140ffc52a08fd5b64cf839babad09e5cf:/wxPython/demo/MDIDemo.py diff --git a/wxPython/demo/MDIDemo.py b/wxPython/demo/MDIDemo.py index 0e3b0ecad5..5670f9377c 100644 --- a/wxPython/demo/MDIDemo.py +++ b/wxPython/demo/MDIDemo.py @@ -19,7 +19,7 @@ class MyParentFrame(wxMDIParentFrame): menubar.Append(menu, "&File") self.SetMenuBar(menubar) - #self.CreateStatusBar() + self.CreateStatusBar() 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()