dabo Commit
Revision 6463
Date: 2011-02-23 08:25:42 -0800 (Wed, 23 Feb 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6463
Changed:
U trunk/dabo/ui/uiwx/dLabel.py
Log:
Added exception handler for missing layout() method.
Diff:
Modified: trunk/dabo/ui/uiwx/dLabel.py
===================================================================
--- trunk/dabo/ui/uiwx/dLabel.py 2011-02-23 12:33:41 UTC (rev 6462)
+++ trunk/dabo/ui/uiwx/dLabel.py 2011-02-23 16:25:42 UTC (rev 6463)
@@ -122,7 +122,11 @@
if self.AutoResize:
self._resetAutoResize = True
self.AutoResize = False
- dabo.ui.callAfter(self.Parent.layout)
+ try:
+ dabo.ui.callAfter(self.Parent.layout)
+ except AttributeError:
+ # Parent has no layout() method.
+ pass
else:
# reset the value
self.AutoResize = self._resetAutoResize
_______________________________________________
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]