Select

class Select[source]

Bases: object

Class representing a selection list.

Parameters
appcompas_view2.app.App

The app containing the widget.

parentQtWidgets.QWidget

The parent widget for the combo box.

itemslist[dict[str, Any]]

A list of selection options, with each item defined as a dict with a particular structure. See Notes for more info.

actioncallable

The action associated with the combo box.

Notes

Every item dict should have the following structure.

item['text']     # str  : The text label of the item.
Attributes
comboQtWidgets.QComboBox

The combo box containing the selection options.

actioncallable

The action associated with the index change event of the combo box.

Methods