How can I have different value choice for each line in a grid with wxPython ?
I want to develop a small software for satisfaction surveys. Each line of the grid is a different question. Sometimes answers choice are the sames between two lines, but sometimes not.
The GridStdEdRend.py in the wxPython demo may be of help, search for GridCellChoiceEditor in it.
Thanks, you helps me a lot ! But can I mix wx.grid.PyGridTableBase and GridCellChoiceEditor ?
Bertrand
···
Werner
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
How can I have different value choice for each line in a grid with wxPython ?
I want to develop a small software for satisfaction surveys. Each line of the grid is a different question. Sometimes answers choice are the sames between two lines, but sometimes not.
The GridStdEdRend.py in the wxPython demo may be of help, search for GridCellChoiceEditor in it.
Thanks, you helps me a lot ! But can I mix wx.grid.PyGridTableBase and GridCellChoiceEditor ?
Yes. One of the things the table can provide is the attributes for each cell, and part of the attributes is which editor to use for the cell. Or you can register some editors for specific data types, and then the table can just tell the grid what the type of each cell is and it will use the registered editor (and renderer) for it.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!