Ed Leafe wrote:
On Sep 9, 2005, at 1:07 AM, Paul McNett wrote:

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


This totally screws up the grid in the SFWB demo, and also running the test code for dGrid.py. I have several other 'internal' apps that use grids, and none of them work now, either.

Hmm, SFWB and dGrid demo work just fine for me. This is on Mac? Your error points to a possible resolution:


    return _grid.GridCellAttr_GetAlignment(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/ generic/grid.cpp(2260): Missing default cell attribute

I don't have time to deal with this for the next few hours, so in the meantime why don't you change line 471 of dGrid, in function _setDataType, to read:

if (False and "Automatic" in self.HorizontalCellAlignment):

I believe that will work around your problem for now. I bet that on Mac, default attribute objects haven't been set while on Linux they have. Just another platform inconsistency to work around. I'm sure the ultimate solution will work equally well on all platforms.


--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to