ButtonBase (hwx.gui)

Abstract base class for all buttons.

Inherits:

Public Methods

setProperties (self, kwds)

Property Details

accel()

Keyboard accelerator to execute the command (ie ‘Ctrl-r’).

autoRepeat()

Returns and sets if button will auto-repeat if the user holds it down.

checkable()

Returns and sets if button can be toggled/checked (depending on rendering)

checked()

Returns and sets if button has been toggled/checked. Only works if it is checkable.

flat()

Returns and sets if button has a flat borderless appearance.

icon()

Icon file name.

text()

Text to display.

Method Details

setProperties(self, kwds)

Ensure proper order of setting properties.

param kwds:A dict so the order of the properties are set is unpredictable checkable must be set before checked, or checked will not take effect.