wx.lib.statbmp.GenStaticBitmap¶GenStaticBitmap is a generic implementation of wx.StaticBitmap.
Methods Summary¶__init__ |
Default class constructor. |
AcceptsFocus |
Can this window be given focus by mouse click? |
DoGetBestSize |
Overridden base class virtual. Determines the best size of |
GetBitmap |
Returns the bitmap currently used in the control. |
GetDefaultAttributes |
Overridden base class virtual. By default we should use |
OnEraseBackground |
Handles the wx.EVT_ERASE_BACKGROUND event for GenStaticBitmap. |
OnPaint |
Handles the wx.EVT_PAINT for GenStaticBitmap. |
SetBitmap |
Sets the bitmap label. |
ShouldInheritColours |
Overridden base class virtual. If the parent has non-default |
Class API¶GenStaticBitmap(wx.Control)¶GenStaticBitmap is a generic implementation of wx.StaticBitmap.
__init__(self, parent, ID, bitmap, pos = wx.DefaultPosition, size = wx.DefaultSize, style = 0, name = "genstatbmp")¶Default class constructor.
| Parameters: |
|
|---|
AcceptsFocus(self)¶Can this window be given focus by mouse click?
Note
Overridden from wx.Control.
DoGetBestSize(self)¶Overridden base class virtual. Determines the best size of the control based on the label size and the current font.
Note
Overridden from wx.Control.
GetDefaultAttributes(self)¶Overridden base class virtual. By default we should use
the same font/colour attributes as the native StaticBitmap.
Note
Overridden from wx.Control.
OnEraseBackground(self, event)¶Handles the wx.EVT_ERASE_BACKGROUND event for GenStaticBitmap.
| Parameters: | event – a wx.EraseEvent event to be processed. |
|---|
Note
This is intentionally empty to reduce flicker.
OnPaint(self, event)¶Handles the wx.EVT_PAINT for GenStaticBitmap.
| Parameters: | event – a wx.PaintEvent event to be processed. |
|---|
SetBitmap(self, bitmap)¶Sets the bitmap label.
| Parameters: | bitmap (wx.Bitmap) – the new bitmap. |
|---|
See also
ShouldInheritColours(self)¶Overridden base class virtual. If the parent has non-default colours then we want this control to inherit them.
Note
Overridden from wx.Control.