On Monday, June 06, 2011 06:17:46 am John Fabiani wrote: > On Sunday, June 05, 2011 07:15:14 pm Ed Leafe wrote: > > 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, > > We are getting closer! > On openSUSE 11.4, python 2.7, wxPython 2.8.11.0 I can open the grid in > ClassDesigner. However, I get the following console messages: > > XXX lineno: 103, opcode: 0 > XXX lineno: 103, opcode: 0 > > which are similar to the one I get when I get the seg fault. > > In my apps I create dynamic grids (and include a fixed size for the grid). > The fixed size is not being used - in fact I can not determine what size is > being using. One time it's very small ( to small to see) and another large > enough to see and almost use. > > I'll try adding delays as you have. But don't you think this might be a > hack? There is something wrong at the wxPython level or maybe even deeper.
Added clue - after using a grid I can't completely close the app using the 'X'. Use the command line to start the ClassDesigner.py. Add the grid. Close the form - do not save and check the command line. ClassDesigner is still open. This happens 3 out 10 times. Johnf _______________________________________________ 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]
