dabo Commit
Revision 4147
Date: 2008-06-17 16:11:23 -0700 (Tue, 17 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4147
Changed:
U trunk/dabo/ui/uiwx/dEditor.py
Log:
Added coercing of strings representing ints when setting LineNumber.
Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py 2008-06-17 22:05:03 UTC (rev 4146)
+++ trunk/dabo/ui/uiwx/dEditor.py 2008-06-17 23:11:23 UTC (rev 4147)
@@ -2027,6 +2027,11 @@
return self.GetCurrentLine()
def _setLineNumber(self, val):
+ try:
+ # Try coercing to int
+ val = int(val)
+ except ValueError:
+ pass
self.GotoLine(val)
self.EnsureCaretVisible()
_______________________________________________
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]