Inheritance diagram for wx.BitmapButton:
A bitmap button is a control that contains a bitmap. It may be placed on a dialog or panel, or indeed almost any other window.
See also
Window Style | Description |
---|---|
wx.BU_AUTODRAW | If this is specified, the button will be drawn automatically using the label bitmap only, providing a 3D-look border. If this style is not specified, the button will be drawn without borders and using all provided bitmaps. WIN32 only. |
wx.BU_LEFT | Left-justifies the bitmap label. WIN32 only. |
wx.BU_TOP | Aligns the bitmap label to the top of the button. WIN32 only. |
wx.BU_RIGHT | Right-justifies the bitmap label. WIN32 only. |
wx.BU_BOTTOM | Aligns the bitmap label to the bottom of the button. WIN32 only. |
A bitmap button can be supplied with a single bitmap, and wxPython will draw all button states using this bitmap. If the application needs more control, additional bitmaps for the selected state, unpressed focused state, and greyed-out state may be supplied.
Event Name | Description |
---|---|
wx.EVT_BUTTON(id, func) | Process a wx.wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked. |
Create and show a button with a bitmap for the label.
Parameters:
Returns:
See also
See also
Returns the bitmap used when the mouse is over the button, may be invalid.
Returns:
See also
Returns the label bitmap (the one passed to the constructor), always valid.
Returns:
See also
Returns the bitmap for the pushed button state, may be invalid.
Returns:
See also
Sets the bitmap for the disabled button appearance.
Parameters:
Sets the bitmap for the button appearance when it has the keyboard focus.
Parameters:
Sets the bitmap to be shown when the mouse is over the button.
This function is new since wxWidgets version 2.7.0 and the hover bitmap is currently only supported in wxMSW.
Parameters:
See also
Sets the bitmap label for the button.
Parameters:
Note
This is the bitmap used for the unselected state, and for all other states if no other bitmaps are provided.
See also
Sets the bitmap for the selected (depressed) button appearance.
Parameters:
Parameters: