X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de20db997ddf7ee903076e72e9918caa2e269c19..9fd9e47a93dfcdd99c2722e288a0f28a51ce6f5f:/wxPython/demo/MDISashDemo.py diff --git a/wxPython/demo/MDISashDemo.py b/wxPython/demo/MDISashDemo.py index 2e4258f487..4b2b08ffd7 100644 --- a/wxPython/demo/MDISashDemo.py +++ b/wxPython/demo/MDISashDemo.py @@ -125,16 +125,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()