.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. currentmodule:: wx.lib.buttons .. highlight:: python .. _wx.lib.buttons.GenBitmapTextButton: ========================================================================================================================================== |phoenix_title| **wx.lib.buttons.GenBitmapTextButton** ========================================================================================================================================== A generic bitmapped button with text label. | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class GenBitmapTextButton:
| |sub_classes| Known Subclasses ============================== :class:`wx.lib.buttons.GenBitmapTextToggleButton`, :class:`wx.lib.buttons.ThemedGenBitmapTextButton` | |super_classes| Known Superclasses ================================== :class:`wx.lib.buttons.GenBitmapButton` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.lib.buttons.GenBitmapTextButton.__init__` Default class constructor. :meth:`~wx.lib.buttons.GenBitmapTextButton.DrawLabel` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: GenBitmapTextButton(GenBitmapButton) A generic bitmapped button with text label. .. method:: __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. :param wx.Window `parent`: parent window. Must not be ``None``; :param integer `id`: window identifier. A value of -1 indicates a default value; :param wx.Bitmap `bitmap`: the button bitmap; :param string `label`: the button text label; :param `pos`: the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform; :type `pos`: tuple or :class:`wx.Point` :param `size`: the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform; :type `size`: tuple or :class:`wx.Size` :param integer `style`: the button style; :param wx.Validator `validator`: the validator associated to the button; :param string `name`: the button name. .. seealso:: :class:`wx.Button` for a list of valid window styles. .. method:: DrawLabel(self, dc, width, height, dx=0, dy=0)