AGW Logo

agw_title SBitmapTextButton

Subclass of SButton which displays a bitmap and a label.

hierarchy Inheritance Diagram

Inheritance diagram for: SBitmapTextButton

Inheritance diagram of SBitmapTextButton


supclasses Known Superclasses


appearance Control Appearance


SBitmapTextButton

SBitmapTextButton


method_summary Methods Summary

__init__Default class constructor.
DrawLabelDraws the bitmap and the text label.
_GetLabelSizeUsed internally.

API Class API

class SBitmapTextButton(SBitmapButton)[source]

Subclass of SButton which displays a bitmap and a label.



__init__(parent, id, bitmap, label, pos=wx.DefaultPosition, size=wx.DefaultSize)[source]

Default class constructor.

Parameters:
  • parent – the SBitmapTextButton parent. Must not be None;
  • id – window identifier. A value of -1 indicates a default value;
  • bitmap – the button bitmap (if any);
  • label – the button text label;
  • pos – the control position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxPython, depending on platform;
  • size – the control size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxPython, depending on platform.


DrawLabel(dc, width, height, dw=0, dh=0)[source]

Draws the bitmap and the text label.

Parameters:
  • dc – an instance of wx.DC;
  • width – the button width;
  • height – the button height;
  • dw – width differential, to show a 3D effect;
  • dh – height differential, to show a 3D effect.
Tree

Table Of Contents

Previous topic

SBitmapButton

Next topic

SBitmapTextToggleButton