ValueEditor

class caqtus.gui.autogen.ValueEditor

Bases: ABC, Generic

Allows to edit a value of type T.

abstractmethod read_value() T

Return the current value displayed in the editor.

abstractmethod set_editable(editable: bool) None

Set whether the editor is editable or not.

When initialized, the editor is editable.

abstract property widget: QWidget

Return the widget that allows to edit the value.