*************** wx.StaticBitmap *************** Inheritance diagram for `wx.StaticBitmap`: | .. inheritance-diagram:: 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. .. seealso:: `wx.StaticBox `_ Derived From ^^^^^^^^^^^^^ * `wx.Control `_ * `wx.Window `_ * `wx.EvtHandler `_ * `wx.Object `_ Remarks ^^^^^^^ The bitmap to be displayed should have a small number of colours, such as 16, to a palette problems. | Control Appearance ^^^^^^^^^^^^^^^^^^ | .. figure:: ../images/wxWidgets/wxmsw/staticbitmap.png :alt: wxMSW :figclass: floatleft **wxMSW** .. figure:: ../images/wxWidgets/wxmac/staticbitmap.png :alt: wxMAC :figclass: floatright **wxMAC** .. figure:: ../images/wxWidgets/wxgtk/staticbitmap.png :alt: wxGTK :figclass: floatcenter **wxGTK** | Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetBitmap <#GetBitmap>`_ * `SetBitmap <#SetBitmap>`_ * `SetIcon <#SetIcon>`_ Class API ========= Methods ^^^^^^^ .. method:: __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:** * `parent` (`wx.Window `_) * `id` (int) * `bitmap` (`wx.Bitmap `_) * `pos` (`wx.Point `_) * `size` (`wx.Size `_) * `style` (long) * `name` (string) | **Returns:** `wx.StaticBitmap `_ -------- .. method:: GetBitmap() Returns the bitmap currently used in the control. | **Returns:** `wx.Bitmap `_ .. note:: Notice that this method can be called even if `SetIcon <#SetIcon>`_ had been used. .. seealso:: `SetBitmap <#SetBitmap>`_ -------- .. method:: SetBitmap(bitmap) Sets the bitmap label. **Parameters:** * `bitmap` (`wx.Bitmap `_) .. seealso:: `GetBitmap <#GetBitmap>`_ -------- .. method:: SetIcon(icon) Sets the label to the given icon. **Parameters:** * `icon` (`wx.Icon `_)