wx.lib.ogl.bmpshape.BitmapShape¶The wx.BitmapShape class draws a bitmap (non-resizable).
Methods Summary¶__init__ |
Default class constructor. |
GetBitmap |
Get the associated bitmap. |
GetFilename |
Return the bitmap filename. |
OnDraw |
The draw handler. |
SetBitmap |
Set the associated bitmap. |
SetFilename |
Set the bitmap filename. |
SetSize |
Set the size. |
Class API¶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.
| Parameters: | 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.
| Parameters: | f (str) – the bitmap file name |
|---|
SetSize(self, w, h, recursive = True)¶Set the size.
| Parameters: |
|
|---|