dabo Commit
Revision 6980
Date: 2011-11-25 07:58:00 -0800 (Fri, 25 Nov 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6980
Changed:
U trunk/dabo/ui/uiwx/dShell.py
Log:
Added a check for deleted objects on the ScrollToLine() method, as the wx-level
class uses a CallAfter to this method, and it was causing a deleted object
error after adding the dShell class in the Class Designer.
Diff:
Modified: trunk/dabo/ui/uiwx/dShell.py
===================================================================
--- trunk/dabo/ui/uiwx/dShell.py 2011-11-25 01:41:03 UTC (rev 6979)
+++ trunk/dabo/ui/uiwx/dShell.py 2011-11-25 15:58:00 UTC (rev 6980)
@@ -167,6 +167,14 @@
self.FontSize = 10
+ @dabo.ui.deadCheck
+ def ScrollToLine(self, lnum):
+ """Need to check for the case where the control is released, as
the wx-level
+ shell makes a CallAfter for ScrollToLine().
+ """
+ super(dShell, self).ScrollToLine(lnum)
+
+
def processLine(self):
"""
This is part of the underlying class. We need to add the
command that
_______________________________________________
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]