Phoenix - StaticBitmap

Hi Robin,

__init__ for above is:

__init__ (self, parent, id=ID_ANY, label=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBitmapNameStr)

"label" parameter to define the Bitmap? Is this really correct?

Werner

Werner wrote:

Hi Robin,

__init__ for above is:

__init__ (self, parent, id=ID_ANY, label=NullBitmap,
pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBitmapNameStr)

"label" parameter to define the Bitmap? Is this really correct?

Yep. The bitmap is the label of the control, just like a string is the label of a wx.StaticText. Or at least that's why I assume it is named that way. wxWidgets has followed that pattern ever since the beginning as far as I know.

···

--
Robin Dunn
Software Craftsman