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

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

Log:
This fixes Mac's grid to draw the headers correctly after my changes last 
night. Good
'ol callAfter.

There's still a display anomaly with the orange column: if you scroll to the 
right and then 
back again the orange will draw to the left of the header window. Only happens 
on Mac.



Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-08-26 08:50:01 UTC (rev 4449)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-08-26 16:07:02 UTC (rev 4450)
@@ -104,7 +104,7 @@
                        # 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().
-                       self.grid._paintHeader(self.grid.Columns[col])
+                       dabo.ui.callAfter(self.grid._paintHeader, 
self.grid.Columns[col])  ## callAfter needed for Mac
                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