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