******************* wx.PyTextDataObject ******************* Inheritance diagram for `wx.PyTextDataObject`: | .. inheritance-diagram:: wx.PyTextDataObject | Description =========== `wx.PyTextDataObject` is a version of `wx.TextDataObject `_ that is Python-aware and knows how to reflect calls to its C++ virtual methods to methods in the Python derived class. You should derive from this class and overload `GetTextLength `_, `GetText `_, and `SetText `_ when you want to be able to provide text on demand instead of preloading it into the data object. Derived From ^^^^^^^^^^^^^ * `wx.TextDataObject `_ * `wx.DataObjectSimple `_ * `wx.DataObject `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(text="") `wx.PyTextDataObject` is a version of `wx.TextDataObject `_ that is Python-aware and knows how to reflect calls to its C++ virtual methods to methods in the Python derived class. You should derive from this class and overload `GetTextLength `_, `GetText `_, and `SetText `_ when you want to be able to provide text on demand instead of preloading it into the data object. **Parameters:** * `text` (string) | **Returns:** `wx.PyTextDataObject `_