Инструменты пользователя

Инструменты сайта


products:pyrog:api:lastest:types:properties:combobox_property

Текст документации сгенерирован автоматически из исходного кода.
Если обнаружили ошибку, отправьте об этом сообщение на 📧почту.

ComboBoxProperty

Inherits: Property

Class of property that provides input of integer value that describes index of current element in combobox.

Attributes:

  • value_changed: Signal[int] — This signal is emitted when value is changed.

Constructor:

def ComboBoxProperty.__init__(items: tuple[str | LC, ...] = ('',), default_value: int = 0, name: str | LangConstant = tr.UNNAMED, 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:

  • items: tuple[str | LC, …] — tuple of items in list
  • default_value: int — default value of property
  • name: str | LangConstant — name of property
  • tooltip: str | LangConstant — tooltip text
  • show_reset_btn: bool — state of reset button displaying

Properties

items

Text of items in list

Returns:

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:

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. Value describes index of current element in combobox.

Returns:

  • int — default value of property

Methods

get_current_item_text

def get_current_item_text() -> str

Return text of current element in combobox.

Returns:

  • str — text of current element in combobox.

get_input_widget

def get_input_widget() -> Resetter

Returns:

products/pyrog/api/lastest/types/properties/combobox_property.txt · Последнее изменение: 127.0.0.1