Текст документации сгенерирован автоматически из исходного кода.
Если обнаружили ошибку, отправьте об этом сообщение на 📧почту.
IntProperty
Inherits: Property
Class of property that provides input of integer value.
Attributes:
- value_changed: int — This signal is emitted when value is changed.
Constructor:
def IntProperty.__init__(default_value: int = 0, name: str| LangConstant = tr.UNNAMED, minimum: int = 0, maximum: int = 10, single_step: int = 1, tooltip: str | LangConstant = '', show_reset_btn: bool = True)
Initializes class of property.
The description of the arguments is identical to the description of the parameters with the same names.
Parameters:
- default_value: int — default value of property
- name: str| LangConstant — property name
- minimum: int — minimum value
- maximum: int — maximum value
- single_step: int — single step
- tooltip: str | LangConstant — tooltip text
- show_reset_btn: bool — state of reset button displaying
Properties
minimum
Minimum value.
Notes: Must be less than [maximum]
Returns:
- int — minimum value
maximum
Maximum value.
Notes: Must be greater than [minimum]
Returns:
- int — maximum value
single_step
This property holds the step value. When the user uses the arrows to change the spin box’s value the value will be incremented/decremented by the amount of the singleStep.
Notes: Must be greater than 0
Returns:
- int — single step
tooltip
Tooltip of the property's widget
Returns:
- str | LangConstant — tooltip text of the property's widget
name
Property name, this text is displayed in PropertyContainer form editing values.
Returns:
- str | LangConstant — property name
show_reset_btn
State of reset button displaying. This button is displayed if value isn't equal to default value.
Returns:
- bool — state of reset button displaying
default_value
Default value of property
Returns:
- int — default value of property
Methods
get_input_widget
def get_input_widget() -> QSpinBox
Returns:
- QSpinBox — (without description)