dabo Commit
Revision 4452
Date: 2008-08-26 09:55:14 -0700 (Tue, 26 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4452

Changed:
U   trunk/dabo/ui/uiwx/dGrid.py

Log:
The callAfter() makes Linux flicker horribly.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-08-26 16:49:28 UTC (rev 4451)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-08-26 16:55:14 UTC (rev 4452)
@@ -104,7 +104,13 @@
                        # Windows performs better drawing the header in 
response to EVT_PAINT,
                        # while Mac and Linux perform better doing it the old 
way, in response
                        # to table.getColLabelValue().
-                       dabo.ui.callAfter(self.grid._paintHeader, 
self.grid.Columns[col])  ## callAfter needed for Mac
+                       colObj = self.grid._columns[col]
+                       # Linux performs horribly with the callAfter(); Mac 
doesn't draw
+                       # correctly without it!
+                       if sys.platform[:6] == "darwin":
+                               dabo.ui.callAfter(self.grid._paintHeader, 
colObj)
+                       else:
+                               self.grid._paintHeader(colObj)
                return ""
 
 




_______________________________________________
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]

Reply via email to