wx.PyTextDataObject

Inheritance diagram for 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.

Methods Summary

Class API

Methods

__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