phoenix_title wx.SharedClientDataContainer

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


class_hierarchy Class Hierarchy

Inheritance diagram for class SharedClientDataContainer:

sub_classes Known Subclasses

wx.grid.GridCellAttr, wx.grid.GridCellEditor, wx.grid.GridCellRenderer


method_summary Methods Summary

GetClientData

Get the untyped client data.

GetClientObject

Get a pointer to the client data object.

SetClientData

Set the untyped client data.

SetClientObject

Set the client data object.


property_summary Properties Summary

ClientData

See GetClientData and SetClientData

ClientObject

See GetClientObject and SetClientObject


api Class API

class 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.


Methods

GetClientData(self)

Get the untyped client data.



GetClientObject(self)

Get a pointer to the client data object.

Return type:

ClientData



SetClientData(self, data)

Set the untyped client data.

Parameters:

data



SetClientObject(self, data)

Set the client data object.

Any previous object will be deleted.

Parameters:

data (ClientData) –


Properties

ClientData

See GetClientData and SetClientData



ClientObject

See GetClientObject and SetClientObject