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
Default constructor. |
|
Get a pointer to the client data object. |
|
Alias for |
|
Set the client data object. |
|
Alias for |
See |
wx.
ClientDataContainer
(object)¶Possible constructors:
ClientDataContainer()
This class is a mixin that provides storage and management of “client data”.
__init__
(self)¶Default constructor.
GetClientData
(self)¶Get a pointer to the client data object.
GetClientObject
(self)¶Alias for GetClientData
SetClientData
(self, data)¶Set the client data object.
Any previous object will be deleted.
data (ClientData) –
SetClientObject
(self, data)¶Alias for SetClientData
ClientData
¶See GetClientData
and SetClientData