wx.HTMLDataObject¶wx.HTMLDataObject is used for working with HTML-formatted text.
See also
Methods Summary¶__init__ |
Constructor. |
GetAllFormats |
Returns a list of wx.DataFormat objects which this data object |
GetHTML |
Returns the HTML string. |
SetData |
|
SetHTML |
Sets the HTML string. |
Class API¶wx.HTMLDataObject(DataObjectSimple)¶Possible constructors:
HTMLDataObject(html="")
HTMLDataObject is used for working with HTML-formatted text.
__init__(self, html="")¶Constructor.
| Parameters: | html (string) – |
|---|
GetAllFormats(self, dir=DataObject.Get)¶Returns a list of wx.DataFormat objects which this data object supports transferring in the given direction.
GetHTML(self)¶Returns the HTML string.
| Return type: | string |
|---|
SetData(self, format, buf)¶| Return type: | bool |
|---|
SetHTML(self, html)¶Sets the HTML string.
| Parameters: | html (string) – |
|---|
AllFormats¶See GetAllFormats