X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de20db997ddf7ee903076e72e9918caa2e269c19..d3a80c922c7f0932f0b3985846e58ef48e3a6da7:/wxPython/demo/MDIDemo.py diff --git a/wxPython/demo/MDIDemo.py b/wxPython/demo/MDIDemo.py index 6251ec4a41..3ae510ea7c 100644 --- a/wxPython/demo/MDIDemo.py +++ b/wxPython/demo/MDIDemo.py @@ -38,16 +38,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()