.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.grid.GridCellEnumRenderer: ========================================================================================================================================== |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 :meth:`~wx.grid.GridCellEnumRenderer.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. .. seealso:: :ref:`wx.grid.GridCellRenderer`, :ref:`wx.grid.GridCellAutoWrapStringRenderer`, :ref:`wx.grid.GridCellBoolRenderer`, :ref:`wx.grid.GridCellDateTimeRenderer`, :ref:`wx.grid.GridCellFloatRenderer`, :ref:`wx.grid.GridCellNumberRenderer`, :ref:`wx.grid.GridCellStringRenderer` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class GridCellEnumRenderer:
| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.grid.GridCellEnumRenderer.__init__` Enum renderer constructor. :meth:`~wx.grid.GridCellEnumRenderer.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. .. method:: __init__(self, choices="") Enum renderer constructor. :param `choices`: Comma separated string parameters "item1[,item2[...,itemN]]". :type `choices`: string .. method:: SetParameters(self, params) Sets the comma separated string content of the enum. :param `params`: Comma separated string parameters "item1[,item2[...,itemN]]". :type `params`: string