X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de20db997ddf7ee903076e72e9918caa2e269c19..08a15c0d899daad0ff8cc2ed4c06ff78b8ec3cc3:/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()