GenStaticBitmap
is a generic implementation of wx.StaticBitmap
.
Default class constructor. |
|
Can this window be given focus by mouse click? |
|
Overridden base class virtual. Determines the best size of |
|
Returns the bitmap currently used in the control. |
|
Overridden base class virtual. By default we should use |
|
Handles the |
|
Handles the |
|
Sets the bitmap label. |
|
Overridden base class virtual. If the parent has non-default |
GenStaticBitmap
is a generic implementation of wx.StaticBitmap
.
Default class constructor.
parent (wx.Window
) – parent window, must not be None
;
ID (integer) – window identifier. A value of -1 indicates a default value;
bitmap (wx.Bitmap) – the static bitmap used in the control;
pos (tuple or wx.Point
) – the control position. A value of (-1, -1) indicates a default position,
chosen by either the windowing system or wxPython, depending on platform;
size (tuple or wx.Size
) – the control size. A value of (-1, -1) indicates a default size,
chosen by either the windowing system or wxPython, depending on platform;
style (integer) – the underlying wx.Control
style;
name (string) – the widget name.
Can this window be given focus by mouse click?
Note
Overridden from wx.Control
.
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
.
Returns the bitmap currently used in the control.
See also
Overridden base class virtual. By default we should use
the same font/colour attributes as the native StaticBitmap
.
Note
Overridden from wx.Control
.
Handles the wx.EVT_ERASE_BACKGROUND
event for GenStaticBitmap
.
event – a wx.EraseEvent
event to be processed.
Note
This is intentionally empty to reduce flicker.
Handles the wx.EVT_PAINT
for GenStaticBitmap
.
event – a wx.PaintEvent
event to be processed.
Sets the bitmap label.
bitmap (wx.Bitmap) – the new bitmap.
See also
Overridden base class virtual. If the parent has non-default colours then we want this control to inherit them.
Note
Overridden from wx.Control
.