The wx.BitmapShape
class draws a bitmap (non-resizable).
wx.lib.ogl.basic.RectangleShape
Default class constructor. |
|
Get the associated bitmap. |
|
Return the bitmap filename. |
|
The draw handler. |
|
Set the associated bitmap. |
|
Set the bitmap filename. |
|
Set the size. |
BitmapShape
(RectangleShape)¶The wx.BitmapShape
class draws a bitmap (non-resizable).
__init__
(self)¶Default class constructor.
GetBitmap
(self)¶Get the associated bitmap.
GetFilename
(self)¶Return the bitmap filename.
OnDraw
(self, dc)¶The draw handler.
SetBitmap
(self, bitmap)¶Set the associated bitmap.
bitmap – a wx.Bitmap
instance
Note
You can delete the bitmap from the calling application, since reference counting will take care of holding on to the internal bitmap data.
SetFilename
(self, f)¶Set the bitmap filename.
f (str) – the bitmap file name
SetSize
(self, w, h, recursive = True)¶Set the size.
w – the width
h – the height
recursive – not used