dabo Commit
Revision 3132
Date: 2007-05-21 22:22:54 -0700 (Mon, 21 May 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3132
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
This resolves much of the flicker with dynamic cell properties in grids
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2007-05-21 19:18:03 UTC (rev 3131)
+++ trunk/dabo/ui/uiwx/dGrid.py 2007-05-22 05:22:54 UTC (rev 3132)
@@ -519,8 +519,13 @@
func = func[0]
else:
args = ()
+ try:
+ oldVal = getattr(self, prop)
+ except:
+ needRefresh = True
setattr(self, prop, func(*args, **kwargs))
- needRefresh = True
+ if needRefresh or oldVal != getattr(self, prop):
+ needRefresh = True
if needRefresh:
dabo.ui.callAfterInterval(200, self._refreshGrid)
del self._cellDynamicRow
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]