Button
- class compas_view2.ui.Button(app, parent, *, text, action)[source]
Bases:
objectClass representing a button wrapped in a horizontal box layout.
- Parameters:
app (
compas_view2.app.App) – The app containing the widget.parent (QtWidgets.QWidget) – The parent widget for the button.
text (str) – The text label of the button.
action (callable) – The action associated with the button.
- Attributes:
action (callable) – Action associated with the button click event.
button (QtWidgets.QPushButton) – The actual button widget.