GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.DataObjectSimple — wxPython 4.3.2 Docs
|
Constructor accepts the supported format (none by default) which may also be set later with |
|
Returns a list of wx.DataFormat objects which this data object |
|
Copies this data object’s data bytes to the given buffer |
|
Gets the size of our data. |
|
Returns the (one and only one) format supported by this object. |
|
Copies data from the provided buffer to this data object. |
|
Sets the supported format. |
Properties Summary¶See |
|
See |
|
Class API¶Possible constructors:
DataObjectSimple(format=FormatInvalid) -> None DataObjectSimple(formatName) -> None
This is the simplest possible implementation of the DataObject class.
__init__ (self, format=FormatInvalid)
Constructor accepts the supported format (none by default) which may also be set later with SetFormat .
format (wx.DataFormat)
None
__init__ (self, formatName)
None
Returns a list of wx.DataFormat objects which this data object supports transferring in the given direction.
Any
Copies this data object’s data bytes to the given buffer
bool
Gets the size of our data.
Must be implemented in the derived class if the object supports rendering its data.
int
Returns the (one and only one) format supported by this object.
It is assumed that the format is supported in both directions.
SetData (self, buf)
Copies data from the provided buffer to this data object.
bool
SetData (self, format, buf)
bool
Sets the supported format.
format (wx.DataFormat)
None
See GetAllFormats
See GetDataSize