]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxStyledTextCtrl_1.py
compilation error fix (trailing comma in an enum)
[wxWidgets.git] / wxPython / demo / wxStyledTextCtrl_1.py
index 4cbdddfecba8a7624f03a3beed39e72ccdcda6b1..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,17 +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()
-
-
 if __name__ == '__main__':
+    import sys,os
     import run
-    run.main(['', 'wxStyledTextCtrl_1'])
+    run.main(['', os.path.basename(sys.argv[0])])