wx.StaticBitmap

Inheritance diagram for wx.StaticBitmap:



Description

A static bitmap control displays a bitmap. It is meant for display of the small icons in the dialog boxes and is not meant to be a general purpose image display control. In particular, under Windows 9x the size of bitmap is limited to 64*64 pixels and thus you should use your own control if you want to display larger images portably.

See also

wx.StaticBox

Remarks

The bitmap to be displayed should have a small number of colours, such as 16, to a palette problems.


Control Appearance


wxMSW

wxMSW

wxMAC

wxMAC

wxGTK

wxGTK


Class API

Methods

__init__(parent, id=-1, bitmap=wx.NullBitmap, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, name=wx.StaticBitmapNameStr)

Constructor, creating and showing a static bitmap control.

Parameters:


Returns:

wx.StaticBitmap


GetBitmap()

Returns the bitmap currently used in the control.


Returns:

wx.Bitmap

Note

Notice that this method can be called even if SetIcon had been used.

See also

SetBitmap


SetBitmap(bitmap)

Sets the bitmap label.

Parameters:

See also

GetBitmap


SetIcon(icon)

Sets the label to the given icon.

Parameters: