StringEditor

class caqtus.gui.autogen.StringEditor(placeholder: str = '')

Bases: ValueEditor[str]

An editor to display a string.

Parameters:

placeholder – The text to display when the editor is empty.

read_value() str

Return the current value displayed in the editor.

set_editable(editable: bool) None

Set whether the editor is editable or not.

When initialized, the editor is editable.

property widget: QLineEdit

Return the widget that allows to edit the value.