Quick question: Is it possible to have a "hidden" column in a wxGrid?
I have a situation where I have about 5 elements of data in a row that
the user needs to be able to edit (so I want those columns showing),
but then a couple of other values that I want to store as well that
the program will calculate (hidden from the user). I've tried
grid.SetColSize(x, 0), but this doesn't seem to work -- it takes it to
the default size.
I'm running on Debian Linux (Sarge) with wxPython 2.4.2.4
Quick question: Is it possible to have a "hidden" column in a wxGrid?
I have a situation where I have about 5 elements of data in a row that
the user needs to be able to edit (so I want those columns showing),
but then a couple of other values that I want to store as well that
the program will calculate (hidden from the user). I've tried
grid.SetColSize(x, 0), but this doesn't seem to work -- it takes it to
the default size.
I'm running on Debian Linux (Sarge) with wxPython 2.4.2.4
Quick question: Is it possible to have a "hidden" column in a wxGrid?
I have a situation where I have about 5 elements of data in a row that
the user needs to be able to edit (so I want those columns showing),
but then a couple of other values that I want to store as well that
the program will calculate (hidden from the user). I've tried
grid.SetColSize(x, 0), but this doesn't seem to work -- it takes it to
the default size.
Why don't you set the elements on these columns to be read-only? Something
like grid.SetReadOnly(row, col, True).
Quick question: Is it possible to have a "hidden" column in a wxGrid?
I have a situation where I have about 5 elements of data in a row that
the user needs to be able to edit (so I want those columns showing),
but then a couple of other values that I want to store as well that
the program will calculate (hidden from the user). I've tried
grid.SetColSize(x, 0), but this doesn't seem to work -- it takes it to
the default size.
If you supply the data on demand to the grid from your own table object, instead of preloading everything into the grid, then it is easy to have extra data in your rows that is never displayed.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!