]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/doodle/doodle.py
mingw32/cygwin compilation fixes
[wxWidgets.git] / wxPython / samples / doodle / doodle.py
index 7756834b09f5e1103388729d23abf5a60b2d07eb..dbfa8b39c63953119f6934ed4e27f28ed5d64431 100644 (file)
@@ -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()