Grid cell editor for string data providing the user a choice from a list of strings.
See also
wx.grid.GridCellEditor, wx.grid.GridCellAutoWrapStringEditor, wx.grid.GridCellBoolEditor, wx.grid.GridCellEnumEditor, wx.grid.GridCellFloatEditor, wx.grid.GridCellNumberEditor, wx.grid.GridCellTextEditor
__init__ |
Choice cell renderer constructor. |
EndEdit |
End editing the cell. |
SetParameters |
Parameters string format is “item1[,item2[...,itemN]]”. |
wx.grid.
GridCellChoiceEditor
(GridCellEditor)¶Possible constructors:
GridCellChoiceEditor(choices, allowOthers=False)
Grid cell editor for string data providing the user a choice from a list of strings.
__init__
(self, choices, allowOthers=False)¶Choice cell renderer constructor.
Parameters: |
|
---|
EndEdit
(self, row, col, grid, oldval)¶End editing the cell.
This function must check if the current value of the editing cell is valid and different from the original value in its string form. If not then simply return None. If it has changed then this method should save the new value so that ApplyEdit can apply it later and the string representation of the new value should be returned.
Notice that this method shoiuld not modify the grid as the change could still be vetoed.
SetParameters
(self, params)¶Parameters string format is “item1[,item2[...,itemN]]”.
Parameters: | params (string) – |
---|