A generic bitmapped button with text label.
wx.lib.buttons.GenBitmapTextToggleButton
, wx.lib.buttons.ThemedGenBitmapTextButton
wx.lib.buttons.GenBitmapButton
Default class constructor. |
|
GenBitmapTextButton
(GenBitmapButton)¶A generic bitmapped button with text label.
__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.
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)¶