This class may be used to render in a cell a number as a textual equivalent.
The corresponding text strings are specified as comma-separated items in the string passed to this renderer constructor or SetParameters
method. For example, if this string is "John,Fred,Bob"
the cell will be rendered as “John”, “Fred” or “Bob” if its contents is 0, 1 or 2 respectively.
See also
wx.grid.GridCellRenderer, wx.grid.GridCellAutoWrapStringRenderer, wx.grid.GridCellBoolRenderer, wx.grid.GridCellDateTimeRenderer, wx.grid.GridCellFloatRenderer, wx.grid.GridCellNumberRenderer, wx.grid.GridCellStringRenderer
Enum renderer constructor. |
|
Sets the comma separated string content of the enum. |
wx.grid.
GridCellEnumRenderer
(GridCellStringRenderer)¶Possible constructors:
GridCellEnumRenderer(choices="")
This class may be used to render in a cell a number as a textual equivalent.
__init__
(self, choices="")¶Enum renderer constructor.
choices (string) – Comma separated string parameters “item1[,item2[…,itemN]]”.
SetParameters
(self, params)¶Sets the comma separated string content of the enum.
params (string) – Comma separated string parameters “item1[,item2[…,itemN]]”.