X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c12bc4de5887421242de7f619b3c5e265bf631ac..e195c8c95fb154d035bab400952fc81c62439549:/wxPython/samples/doodle/doodle.py?ds=sidebyside diff --git a/wxPython/samples/doodle/doodle.py b/wxPython/samples/doodle/doodle.py index 7756834b09..dbfa8b39c6 100644 --- a/wxPython/samples/doodle/doodle.py +++ b/wxPython/samples/doodle/doodle.py @@ -193,20 +193,11 @@ class DoodleFrame(wxFrame): self.doodle = DoodleWindow(self, -1) -#---------------------------------------------------------------------- - - -class DoodleApp(wxApp): - def OnInit(self): - frame = DoodleFrame(None) - frame.Show(true) - self.SetTopWindow(frame) - return true - - #---------------------------------------------------------------------- if __name__ == '__main__': - app = DoodleApp(0) + app = wxPySimpleApp() + frame = DoodleFrame(None) + frame.Show(true) app.MainLoop()