From: Kevin A. <ka...@us...> - 2004-05-25 19:47:18
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10623/components Modified Files: codeeditor.py Log Message: renamed test.py to runTimeTest.py and moved it to tests updated runAllTests.py to use endswith instead of regular expression removed .rsrc.py from tests Index: codeeditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/codeeditor.py,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** codeeditor.py 13 May 2004 02:40:24 -0000 1.36 --- codeeditor.py 25 May 2004 19:47:08 -0000 1.37 *************** *** 119,122 **** --- 119,126 ---- self.MarkerDefine(stc.STC_MARKNUM_FOLDEROPEN, stc.STC_MARK_BOXMINUS, "white", "black") + # KEA 2004-05-20 + # get rid of the annoying text drag and drop + #stc.EVT_STC_START_DRAG(self, self.GetId(), self.OnStartDrag) + stc.EVT_STC_MARGINCLICK(self, self.GetId(), self.OnMarginClick) *************** *** 363,366 **** --- 367,376 ---- STCStyleEditor.initSTC(self, config, style) + def OnStartDrag(self, evt): + evt.SetDragText("") + pos = self.GetCurrentPos() + self.SetSelection(pos, pos) + evt.Skip() + ClearSelection = stc.StyledTextCtrl.Clear |