edifice.Button

edifice.Button#

class edifice.Button(title='', **kwargs)[source]#

Bases: QtWidgetElement

Basic button widget.

../_images/textinput_button.png

Button on the right#

Set the on_click prop (inherited from QtWidgetElement) to define the behavior on click.

Parameters:
  • title (Any) – the button text

  • style – the styling of the button

Methods

__init__([title])

register_ref(reference)

Registers provided Reference to this Element.

set_key(key)

Sets the key of the Element.

Attributes

children

The children of this Element.

props

The props of this Element.

underlying

The underlying QWidget, which may not exist if this Element has not rendered.