wx.ClientDataContainer¶
This class is a mixin that provides storage and management of “client data”.
This data can either be of type - in which case the data container does not take care of freeing the data again or it is of type ClientData or its derivatives. In that case the container will free the memory itself later. Note that you must not assign both data and data derived from the ClientData class to a container.
Note
This functionality is currently duplicated in wx.EvtHandler in order to avoid having more than one vtable in that class hierarchy.
See also
wx.SharedClientDataContainer, wx.EvtHandler, ClientData
Class Hierarchy¶
Known Subclasses¶
Methods Summary¶
Default constructor. |
|
Get a pointer to the client data object. |
|
Alias for |
|
Set the client data object. |
|
Alias for |
Properties Summary¶
See |
Class API¶
- class wx.ClientDataContainer(object)¶
Possible constructors:
ClientDataContainer() -> None
This class is a mixin that provides storage and management of “client data”.
Methods¶
- __init__(self)¶
Default constructor.
- Return type:
None
- GetClientData(self)¶
Get a pointer to the client data object.
- Return type:
- GetClientObject(self)¶
Alias for
GetClientData
- SetClientData(self, data)¶
Set the client data object.
Any previous object will be deleted.
- Parameters:
data (ClientData)
- Return type:
None
- SetClientObject(self, data)¶
Alias for
SetClientData
Properties¶
- ClientData¶
See
GetClientData
andSetClientData