dabo Commit
Revision 2734
Date: 2007-01-22 04:42:24 -0800 (Mon, 22 Jan 2007)
Author: Ed

Changed:
U   trunk/dabo/ui/uiwx/dEditor.py

Log:
Added the 'ensureLineVisible()' method, which will not only move the cursor to 
the specified line, but also unfold any folded code to reveal the line.


Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2007-01-22 12:40:25 UTC (rev 2733)
+++ trunk/dabo/ui/uiwx/dEditor.py       2007-01-22 12:42:24 UTC (rev 2734)
@@ -1284,6 +1284,12 @@
        def moveToEnd(self):
                self.SetSelection(-1, -1)
                self.EnsureCaretVisible()
+       
+       
+       def ensureLineVisible(self, line):
+               self.EnsureVisible(line)
+               self.LineNumber = line
+               self.EnsureCaretVisible()
 
 
        # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to