phoenix_title wx.AnyButton

A class for common button functionality used as the base for the various button classes.


class_hierarchy Class Hierarchy

Inheritance diagram for class AnyButton:

sub_classes Known Subclasses

wx.Button, wx.ToggleButton


method_summary Methods Summary

__init__

GetBitmap

Return the bitmap shown by the button.

GetBitmapCurrent

Returns the bitmap used when the mouse is over the button.

GetBitmapDisabled

Returns the bitmap used for the disabled state.

GetBitmapFocus

Returns the bitmap used for the focused state.

GetBitmapLabel

Returns the bitmap for the normal state.

GetBitmapMargins

Get the margins between the bitmap and the text of the button.

GetBitmapPressed

Returns the bitmap used when the button is pressed.

SetBitmap

Sets the bitmap to display in the button.

SetBitmapCurrent

Sets the bitmap to be shown when the mouse is over the button.

SetBitmapDisabled

Sets the bitmap for the disabled button appearance.

SetBitmapFocus

Sets the bitmap for the button appearance when it has the keyboard focus.

SetBitmapLabel

Sets the bitmap label for the button.

SetBitmapMargins

Set the margins between the bitmap and the text of the button.

SetBitmapPosition

Set the position at which the bitmap is displayed.

SetBitmapPressed

Sets the bitmap for the selected (depressed) button appearance.


property_summary Properties Summary

Bitmap

See GetBitmap and SetBitmap

BitmapCurrent

See GetBitmapCurrent and SetBitmapCurrent

BitmapDisabled

See GetBitmapDisabled and SetBitmapDisabled

BitmapFocus

See GetBitmapFocus and SetBitmapFocus

BitmapLabel

See GetBitmapLabel and SetBitmapLabel

BitmapMargins

See GetBitmapMargins and SetBitmapMargins

BitmapPressed

See GetBitmapPressed and SetBitmapPressed


api Class API

class wx.AnyButton(Control)

Possible constructors:

AnyButton() -> None

A class for common button functionality used as the base for the various button classes.


Methods

__init__(self)
Return type:

None



GetBitmap(self)

Return the bitmap shown by the button.

The returned bitmap may be invalid only if the button doesn’t show any images.

Return type:

wx.Bitmap

Added in version 2.9.1.

See also

SetBitmap