hi there i've found a problem with SetCellSize, it appears if you SetAttr on a column OR cell SetSizeCell is unable to work.
i've made a small working example of the problem here http://www.open-networks.net/Main_example.py
i'm using wxpython 2.4.2_4 and python 2.3. If this is fixed in newer wx releases, maybe i need to upgrade. if not is there some hack i can apply to work around this problem?
I think that the problem comes from the fact that row/col spanning is also stored in the attr objects, and so by sharing the same attr object for all the cells in that row you are in effect telling the grid that all of the cells span across each other.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
hi there i've found a problem with SetCellSize, it appears if you SetAttr on a column OR cell SetSizeCell is unable to work.
i've made a small working example of the problem here http://www.open-networks.net/Main_example.py
i'm using wxpython 2.4.2_4 and python 2.3. If this is fixed in newer wx releases, maybe i need to upgrade. if not is there some hack i can apply to work around this problem?
I think that the problem comes from the fact that row/col spanning is also stored in the attr objects, and so by sharing the same attr object for all the cells in that row you are in effect telling the grid that all of the cells span across each other.
would it be possible to dodge the problem using labels? is it possible to span labels?
i have to SetColattr, i can't get around that, but i also need the top row to span 3 or 4 cols.
I think that the problem comes from the fact that row/col spanning is also stored in the attr objects, and so by sharing the same attr object for all the cells in that row you are in effect telling the grid that all of the cells span across each other.
would it be possible to dodge the problem using labels? is it possible to span labels?
No, but you could probably hijack the painting of the column labels and paint them however you want. Just bind a EVT_PAINT handler to the window returned from grid.GetGridColLabelWindow().
i have to SetColattr, i can't get around that, but i also need the top row to span 3 or 4 cols.
I think that the cell attributes for cell size should take precedence over the col attributes like the other members of the attribute objects do, I'm not sure why it doesn't now. I'll check into it.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!