Phoenix Logo

phoenix_title wx.lib.ogl.bmpshape.BitmapShape

The wx.BitmapShape class draws a bitmap (non-resizable).


class_hierarchy Class Hierarchy

Inheritance diagram for class BitmapShape:


method_summary 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.

api Class API



class BitmapShape(RectangleShape)

The wx.BitmapShape class draws a bitmap (non-resizable).


Methods



__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:
  • w – the width
  • h – the heigth
  • recursive – not used