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.EvtHandler, ClientData
wx.grid.GridCellAttr, wx.grid.GridCellAttrProvider, wx.grid.GridCellEditor, wx.grid.GridCellRenderer
__init__ |
Default constructor. |
GetClientData |
Get a pointer to the client data object. |
GetClientObject |
Alias for GetClientData |
SetClientData |
Set the client data object. |
SetClientObject |
Alias for SetClientData |
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.
Return type: | ClientData |
---|
GetClientObject
(self)¶Alias for GetClientData
SetClientData
(self, data)¶Set the client data object.
Any previous object will be deleted.
Parameters: | data (ClientData) – |
---|
SetClientObject
(self, data)¶Alias for SetClientData
ClientData
¶See GetClientData
and SetClientData