dabo Commit
Revision 7184
Date: 2012-05-15 11:21:19 -0700 (Tue, 15 May 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7184
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Fixed an issue that would raise errors when creating columns with a Precision
setting that had no associated grid.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2012-05-15 17:29:02 UTC (rev 7183)
+++ trunk/dabo/ui/uiwx/dGrid.py 2012-05-15 18:21:19 UTC (rev 7184)
@@ -1381,7 +1381,8 @@
def _setPrecision(self, val):
if self._constructed():
self._precision = val
- dabo.ui.callAfterInterval(50, self.Parent.refresh)
+ if self.Parent:
+ dabo.ui.callAfterInterval(50,
self.Parent.refresh)
else:
self._properties["Precision"] = val
_______________________________________________
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]