wx.lib.buttons.GenBitmapTextButton¶
A generic bitmapped button with text label.
Class Hierarchy¶
Known Subclasses¶
wx.lib.buttons.GenBitmapTextToggleButton
, wx.lib.buttons.ThemedGenBitmapTextButton
Known Superclasses¶
wx.lib.buttons.GenBitmapButton
Methods Summary¶
Default class constructor. |
|
Class API¶
- class GenBitmapTextButton(GenBitmapButton)¶
A generic bitmapped button with text label.
Methods¶
- __init__(self, parent, id=-1, bitmap=wx.NullBitmap, label='', pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name='genbutton')¶
Default class constructor.
- Parameters:
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 button bitmap;
label (string) – the button text label;
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 button style;
validator (wx.Validator) – the validator associated to the button;
name (string) – the button name.
See also
wx.Button
for a list of valid window styles.
- DrawLabel(self, dc, width, height, dx=0, dy=0)¶