dabo Commit
Revision 6616
Date: 2011-06-05 19:15:14 -0700 (Sun, 05 Jun 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6616

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

Log:
This fixes the issues with the segfault/bus error that was being seen when 
running the Class Designer under Python 2.7. Please test on your systems to 
verify that it works on all platform/version combinations.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-06-04 14:12:21 UTC (rev 6615)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-06-06 02:15:14 UTC (rev 6616)
@@ -28,6 +28,7 @@
 import dabo.lib.dates
 from dabo.lib.utils import noneSortKey, caseInsensitiveSortKey
 
+from dabo.dBug import loggit
 
 class dGridDataTable(wx.grid.PyGridTableBase):
        def __init__(self, parent):
@@ -551,6 +552,9 @@
 
        @dabo.ui.deadCheck
        def _updateCellDynamicProps(self, row):
+               dabo.ui.callAfterInterval(200, 
self._updateCellDynamicProps_delayed, row)
+       
+       def _updateCellDynamicProps_delayed(self, row):
                kwargs = {"row": row}
                self._cellDynamicRow = row
                for prop, func in self._dynamic.items():
@@ -566,7 +570,7 @@
 
        def _restoreFontZoom(self):
                if self.Form and self.Form.SaveRestorePosition:
-                       self.super()
+                       super(dColumn, self)._restoreFontZoom()
 
 
        def _getDefaultFont(self):
@@ -5150,7 +5154,7 @@
 
 
        def afterInit(self):
-               self.super()
+               super(_dGrid_test, self).afterInit()
 
                self.addColumn(Name="Geek", DataField="coder", Caption="Geek?",
                                Order=10, DataType="bool", Width=60, 
Sortable=False,



_______________________________________________
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