edifice.Button#
- class edifice.Button(title='', **kwargs)[source]#
Bases:
QtWidgetElement
[QPushButton
]Basic button widget.
Underlying Qt Widget QPushButton
Set the on_click prop (inherited from QtWidgetElement) to define the behavior on click.
- Parameters:
title (
Any
) – the button textstyle – the styling of the button
Methods
__init__
([title])register_ref
(reference)Registers provided
Reference
to this Element.set_key
(key)Set the key of an
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.