X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10ef30eb534117ae854c9d099101c862fe96bcb0..d285d708a229ece6ad606a460bcbf048c65d252b:/wxPython/demo/wxStyledTextCtrl_1.py diff --git a/wxPython/demo/wxStyledTextCtrl_1.py b/wxPython/demo/wxStyledTextCtrl_1.py index ed9a403f72..0f082c2ca9 100644 --- a/wxPython/demo/wxStyledTextCtrl_1.py +++ b/wxPython/demo/wxStyledTextCtrl_1.py @@ -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])])