X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de20db997ddf7ee903076e72e9918caa2e269c19..521a2cb15495224d42df6116f93049800595a7ba:/wxPython/demo/MDISashDemo.py diff --git a/wxPython/demo/MDISashDemo.py b/wxPython/demo/MDISashDemo.py index 2e4258f487..dca6516f6a 100644 --- a/wxPython/demo/MDISashDemo.py +++ b/wxPython/demo/MDISashDemo.py @@ -125,16 +125,18 @@ class MyParentFrame(wxMDIParentFrame): #---------------------------------------------------------------------- -class MyApp(wxApp): - def OnInit(self): - frame = MyParentFrame() - frame.Show(true) - self.SetTopWindow(frame) - return true - - -app = MyApp(0) -app.MainLoop() +if __name__ == '__main__': + class MyApp(wxApp): + def OnInit(self): + wxInitAllImageHandlers() + frame = MyParentFrame() + frame.Show(true) + self.SetTopWindow(frame) + return true + + + app = MyApp(0) + app.MainLoop()