dabo Commit
Revision 6389
Date: 2011-02-04 09:06:15 -0800 (Fri, 04 Feb 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6389
Changed:
U trunk/dabo/ui/uiwx/dEditor.py
Log:
Implemented the select() method for dEditor.
Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py 2011-02-03 23:54:01 UTC (rev 6388)
+++ trunk/dabo/ui/uiwx/dEditor.py 2011-02-04 17:06:15 UTC (rev 6389)
@@ -601,6 +601,12 @@
self.SelectionPosition = pos
+ def select(self, position, length):
+ """Select all text from <position> for <length> or end of
string."""
+ self.SelectionStart = position
+ self.SelectionEnd = position + length
+
+
def selectLine(self):
start =self.GetLineEndPosition(self.LineNumber-1)
if self.Value[start] == "\r":
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]