Phoenix Logo

phoenix_title 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 Class Hierarchy

Inheritance diagram for class DataViewChoiceRenderer:


sub_classes Known Subclasses

DataViewChoiceByIndexRenderer


method_summary Methods Summary

__init__ The constructor.
GetChoice Returns the choice referred to by index.
GetChoices Returns all choices.

property_summary Properties Summary

Choices See GetChoices

api Class API



class wx.dataview.DataViewChoiceRenderer(DataViewRenderer)

Possible constructors:

DataViewChoiceRenderer(choices, mode=DATAVIEW_CELL_EDITABLE,
                       alignment=DVR_DEFAULT_ALIGNMENT)

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:


GetChoice(self, index)

Returns the choice referred to by index.

Parameters:index (int) –
Return type:string


GetChoices(self)

Returns all choices.

Return type:list of strings

Properties



Choices

See GetChoices