wx.ControlWithItems

Inheritance diagram for wx.ControlWithItems:



Description

This class is an abstract base class for some wxWidgets controls which contain several items, such as wx.ListBox and wx.CheckListBox derived from it, wx.Choice and wx.ComboBox .

It defines the methods for accessing the controls items and although each of the derived classes implements them differently, they still all conform to the same interface.

The items in a wx.ControlWithItems have (non-empty) string labels and, optionally, client data associated with them. Client data may be of two different kinds: either simple untyped pointers which are simply stored by the control but not used in any way by it, or typed pointers which are owned by the control meaning that the typed client data (and only it) will be deleted when an item is or the entire control is (which also happens when it is destroyed).

Note

Finally note that in the same control all items must have client data of the same type (typed or untyped), if any. This type is determined by the first call to Append or SetClientData.

Methods Summary

Class API

Methods

__init__()
No docstrings found for this method.