wx.dataview.DataViewChoiceRenderer¶
A wx.dataview.DataViewCtrl renderer using wx.Choice control and values of strings in it.
This class is used by wx.dataview.DataViewCtrl to render choice controls. It stores a string so that SetValue
and GetValue
operate on a variant holding a string.
See also
DataViewChoiceByIndexRenderer
Class Hierarchy¶
Known Subclasses¶
DataViewChoiceByIndexRenderer
Methods Summary¶
The constructor. |
|
Returns the choice referred to by index. |
|
Returns all choices. |
Properties Summary¶
See |
Class API¶
- class wx.dataview.DataViewChoiceRenderer(DataViewRenderer)¶
Possible constructors:
DataViewChoiceRenderer(choices, mode=DATAVIEW_CELL_EDITABLE, alignment=DVR_DEFAULT_ALIGNMENT) -> None
A DataViewCtrl renderer using Choice control and values of strings in it.
Methods¶
- __init__(self, choices, mode=DATAVIEW_CELL_EDITABLE, alignment=DVR_DEFAULT_ALIGNMENT)¶
The constructor.
- Parameters:
choices (list of strings)
mode (DataViewCellMode)
alignment (int)
- Return type:
None
- GetChoice(self, index)¶
Returns the choice referred to by index.
- Parameters:
index (int) – A valid index, i.e. a value between 0 and number of choices minus one.
- Return type:
str
- GetChoices(self)¶
Returns all choices.
- Return type:
List[str]
Properties¶
- Choices¶
See
GetChoices