phoenix_title wx.grid.GridCellEnumRenderer

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


class_hierarchy Class Hierarchy

Inheritance diagram for class GridCellEnumRenderer:

method_summary Methods Summary

__init__

Enum renderer constructor.

SetParameters

Sets the comma separated string content of the enum.


api Class API

class wx.grid.GridCellEnumRenderer(GridCellStringRenderer)

Possible constructors:

GridCellEnumRenderer(choices="")

This class may be used to render in a cell a number as a textual equivalent.


Methods

__init__(self, choices="")

Enum renderer constructor.

Parameters:

choices (string) – Comma separated string parameters “item1[,item2[…,itemN]]”.



SetParameters(self, params)

Sets the comma separated string content of the enum.

Parameters:

params (string) – Comma separated string parameters “item1[,item2[…,itemN]]”.