]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxStyledTextCtrl_1.py
Fix some GCC 3.1 compilation warnings
[wxWidgets.git] / wxPython / demo / wxStyledTextCtrl_1.py
index ed9a403f722c5672b16e79a2433de8910626328b..0f082c2ca9e656de437d163abc9e0b0f42e69067 100644 (file)
@@ -60,6 +60,11 @@ class MySTC(wxStyledTextCtrl):
         EVT_STC_START_DRAG(self, ID, self.OnStartDrag)
         EVT_STC_MODIFIED(self, ID, self.OnModified)
 
+##         EVT_WINDOW_DESTROY(self, self.OnDestroy)
+##     def OnDestroy(self, evt):
+##         wxTheClipboard.Flush()
+##         evt.Skip()
+
 
     def OnStartDrag(self, evt):
         self.log.write("OnStartDrag: %d, %s\n"
@@ -263,13 +268,8 @@ be helpful.
 """
 
 
-
 if __name__ == '__main__':
-    import sys
-    app = wxPySimpleApp()
-    frame = wxFrame(None, -1, "Tester...", size=(640, 480))
-    win = runTest(frame, frame, sys.stdout)
-    frame.Show(true)
-    app.MainLoop()
-
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])