IntegerEditor

class caqtus.gui.autogen.IntegerEditor(min_value=0, max_value=999, prefix: str = '', suffix: str = '')

Bases: ValueEditor[int]

An editor to display an integer.

Parameters:
  • min_value – The lowest value (inclusive) that can be entered.

  • max_value – The largest value (inclusive) that can be entered.

  • prefix – A string to be displayed before the number.

  • suffix – A string to be displayed after the number.

read_value() int

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: QSpinBox

Return the widget that allows to edit the value.