Home | Trees | Index | Help |
|
---|
Package wx :: Class DataObjectComposite |
|
object
--+ |DataObject
--+ | DataObjectComposite
wx.DataObjectComposite is the simplest wx.DataObject
derivation
which may be sued to support multiple formats. It contains several
'wx.DataObjectSimple` objects and supports any format supported by at
least one of them. Only one of these data objects is preferred (the
first one if not explicitly changed by using the second parameter of
Add
) and its format determines the preferred format of the composite
data object as well.
See wx.DataObject
documentation for the reasons why you might prefer
to use wx.DataObject directly instead of wx.DataObjectComposite for
efficiency reasons.
Method Summary | |
---|---|
DataObjectComposite |
wx.DataObjectComposite is the simplest wx.DataObject derivation
which may be sued to support multiple formats. |
__repr__(self)
| |
Adds the dataObject to the list of supported objects and it becomes the preferred object if preferred is True. | |
Inherited from DataObject | |
| |
[formats] |
Returns a list of all the wx.DataFormats that this dataobject supports in the given direction. |
String |
Get the data bytes in the specified format, returns None on failure. |
size_t |
Get the (total) size of data for the given format |
size_t |
Returns the number of available formats for rendering or setting the data. |
DataFormat |
Returns the preferred format for either rendering the data (if dir is Get, its default value) or for setting it. |
bool |
Returns True if this format is supported. |
bool |
Set the data in the specified format from the bytes in the the data string. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Class Variable Summary | |
---|---|
Inherited from DataObject | |
int |
Both = 3 |
int |
Get = 1 |
int |
Set = 2 |
Method Details |
---|
__init__(self)
|
Add(self, dataObject, preferred=False)Adds the dataObject to the list of supported objects and it becomes the preferred object if preferred is True.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:58:58 2007 | http://epydoc.sf.net |