This class is a replacement for wx.ClientDataContainer, and unlike wx.ClientDataContainer the wx.SharedClientDataContainer client data is copiable, so it can be copied when objects containing it are cloned.
Like wx.ClientDataContainer, wx.SharedClientDataContainer is a mixin that provides storage and management of “client data.”. The client data is reference counted and managed by the container. As the client data is a shared object, changing the client data used by any object changes it for all other objects, too.
New in version 4.1/wxWidgets-3.1.7.
Note
If your class has a Clone function and needs to store client data, use wx.SharedClientDataContainer and not ClientDataContainer!
See also
wx.ClientDataContainer, ClientData
wx.grid.GridCellAttr, wx.grid.GridCellEditor, wx.grid.GridCellRenderer
Get the untyped client data. |
|
Get a pointer to the client data object. |
|
Set the untyped client data. |
|
Set the client data object. |
See |
|
See |
wx.
SharedClientDataContainer
(object)¶This class is a replacement for ClientDataContainer, and unlike ClientDataContainer the SharedClientDataContainer client data is copiable, so it can be copied when objects containing it are cloned.
GetClientData
(self)¶Get the untyped client data.
GetClientObject
(self)¶Get a pointer to the client data object.
SetClientData
(self, data)¶Set the untyped client data.
data –
SetClientObject
(self, data)¶Set the client data object.
Any previous object will be deleted.
data (ClientData) –
ClientData
¶See GetClientData
and SetClientData
ClientObject
¶See GetClientObject
and SetClientObject