| Home | Trees | Index | Help |
|
|---|
| Package wx :: Class BitmapDataObject |
|
object--+ |DataObject--+ |DataObjectSimple--+ | BitmapDataObject
PyBitmapDataObjectwx.BitmapDataObject is a specialization of wxDataObject for bitmap
data. It can be used without change to paste data into the wx.Clipboard
or a wx.DropSource.
See Also:
wx.PyBitmapDataObject if you wish to override GetBitmap to increase efficiency.
| Method Summary | |
|---|---|
| BitmapDataObject |
Constructor, optionally passing a bitmap (otherwise use SetBitmap
later). |
__repr__(self)
| |
| Bitmap |
Returns the bitmap associated with the data object. |
Sets the bitmap associated with the data object. | |
| Inherited from DataObjectSimple | |
| String |
Returns the data bytes from the data object as a string, returns None on failure. |
| size_t |
Get the size of our data. |
| DataFormat |
Returns the (one and only one) format supported by this object. |
| bool |
Copy the data value to the data object. |
Sets the supported format. | |
| Inherited from DataObject | |
| |
| [formats] |
Returns a list of all the wx.DataFormats that this dataobject supports in the given direction. |
| 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. |
| 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,
bitmap=wxNullBitmap)
|
GetBitmap(self)Returns the bitmap associated with the data object. You may wish to
override this method (by deriving from
|
SetBitmap(self, bitmap)Sets the bitmap associated with the data object. This method is called when the data object receives data. Usually there will be no reason to override this function.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:48:13 2007 | http://epydoc.sf.net |