I’ve got a question I have not been able to figure out after hours of looking at demos and docs:
Is it possible to set one column of a grid in wxPython to contain Radio buttons?
There is not a “SetColFormatRadio” function, and I cant get the SetColFormatCustom function to work with radio buttons.
My grid control manages values directly, I’m not using a grid table.
In other words, I would like for each cell in one entire column of my grid to be a radio button, such that only one radio may be selected at a time, and selecting a new radio will deselect all others.
Any help is much appreciated. In frustration I went out and bought “wxPython in action” hoping it would contain the answer (it hasn’t, but still seems like a good book).
Hello,
I've got a question I have not been able to figure out after hours of looking at demos and docs:
Is it possible to set one column of a grid in wxPython to contain Radio buttons?
There is not a "SetColFormatRadio" function, and I cant get the SetColFormatCustom function to work with radio buttons.
My grid control manages values directly, I'm not using a grid table.
In other words, I would like for each cell in one entire column of my grid to be a radio button, such that only one radio may be selected at a time, and selecting a new radio will deselect all others.
You'll need to implement your own cell editor and renderer for this, and also the "radio" functionality of modifying the other cell values when a new one is selected.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!