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"
"""
-
-## 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])])