RWESharp.Configurable.PythonTypes

Classes

BoolConfigurable(mod, name[, default, ...])

DictConfigurable(mod, name[, default, ...])

FloatConfigurable(mod, name[, default, ...])

IntConfigurable(mod, name[, default, ...])

StringConfigurable(mod, name[, default, ...])

class RWESharp.Configurable.PythonTypes.BoolConfigurable(mod, name: str, default: bool = False, description: str = '')[source]
Parameters:
class KeyConfigurable(mod, name, default: QKeySequence | str | StandardKey, description='', shortdesc='')
Parameters:

default (QKeySequence | str | StandardKey)

Parameters:

action (QAction)

Parameters:

button (QAbstractButton)

Parameters:

edit (QKeySequenceEdit)

Parameters:

shortcut (QShortcut)

load_str_value(text: str) None
Parameters:

text (str)

Return type:

None

save_str_value() str
Return type:

str

staticMetaObject = PySide6.QtCore.QMetaObject("KeyConfigurable" inherits "Configurable": Methods:   #4 type=Signal, signature=valueChanged(QKeySequence), parameters=QKeySequence   #5 type=Signal, signature=tooltipChanged(QString), parameters=QString )
tooltipChanged
update_value(value: QKeySequence)
Parameters:

value (QKeySequence)

valueChanged: Signal | None

Activated when value is changed

valueChanged: Signal | None

Activated when value is changed

load_str_value(text: str) None[source]
Parameters:

text (str)

Return type:

None

save_str_value() str[source]
Return type:

str

update_value(value: bool | CheckState | None = None) None[source]
Parameters:

value (bool | CheckState | None)

Return type:

None

flip()[source]

Makes link between Button and Configurable, where value gets synced :param button: button to link :param key: optional key to link to button :return: None

Parameters:
Return type:

None

Makes link between Action and Configurable, where state is synced :param action: action to link :param key: optional key to link to action :return: None

Parameters:
Return type:

None

Links both Button and Action to a Configurable and syncs the state :param button: Button to link :param action: action to link :param key: optional key to link to action(for it to be used globally) :return: None

Parameters:
Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("BoolConfigurable" inherits "Configurable": Methods:   #4 type=Signal, signature=valueChanged(bool), parameters=bool   #5 type=Slot, signature=update_value()   #6 type=Slot, signature=update_value(Qt::CheckState), parameters=Qt::CheckState   #7 type=Slot, signature=update_value(bool), parameters=bool   #8 type=Slot, signature=flip() )
class RWESharp.Configurable.PythonTypes.StringConfigurable(mod, name: str, default: str = '', description: str = '')[source]
Parameters:
valueChanged: Signal | None

Activated when value is changed

load_str_value(text: str) None[source]
Parameters:

text (str)

Return type:

None

save_str_value() str[source]
Return type:

str

update_value(value: str)[source]
Parameters:

value (str)

Links combobox with configurable :param combobox: Combobox to link

Parameters:

combobox (QComboBox)

Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("StringConfigurable" inherits "Configurable": Methods:   #4 type=Signal, signature=valueChanged(QString), parameters=QString   #5 type=Slot, signature=update_value(QString), parameters=QString )
class RWESharp.Configurable.PythonTypes.IntConfigurable(mod, name: str, default: int = 0, description: str = '')[source]
Parameters:
valueChanged: Signal | None

Activated when value is changed

load_str_value(text: str) None[source]
Parameters:

text (str)

Return type:

None

save_str_value() str[source]
Return type:

str

update_value(value: int | None)[source]
Parameters:

value (int | None)

Links list of radio buttons to Configurable

Configurable value becomes index of pressed radio button

radio buttons will also be synced to current value :param buttons: Buttons to press :return: None

Parameters:

buttons (list[QRadioButton])

Return type:

None

Links slider to Configurable :param slider: slider :param releaseonly: should configurable update only when slider is released :return: None

Parameters:

slider (QSlider)

Return type:

None

Links spin box to Configurable :param spin: Spinbox :param releaseonly: should configurable update only when spinbox is released :return: None

Parameters:

spin (QSpinBox)

Return type:

None

Links both slider and spinbox to a Configurable :param slider: slider to link :param spinbox: spinbox to link :param releaseonly: should configurable update only when slider/spinbox is released

Parameters:
Return type:

None

Links combobox with configurable :param combobox: Combobox to link

Parameters:

combobox (QComboBox)

Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("IntConfigurable" inherits "Configurable": Methods:   #4 type=Signal, signature=valueChanged(int), parameters=int   #5 type=Slot, signature=update_value()   #6 type=Slot, signature=update_value(int), parameters=int )
class RWESharp.Configurable.PythonTypes.FloatConfigurable(mod, name: str, default: float = 0, description: str = '')[source]
Parameters:
valueChanged: Signal | None

Activated when value is changed

load_str_value(text: str) None[source]
Parameters:

text (str)

Return type:

None

save_str_value() str[source]
Return type:

str

update_value(value: float)[source]
Parameters:

value (float)

Links spin box to Configurable :param spin: Double spinbox :param releaseonly: should configurable update only when spinbox is released :return: None

Parameters:

spin (QDoubleSpinBox)

Return type:

None

Links slider to Configurable :param slider: slider :param releaseonly: should configurable update only when slider is released :param division: how much to divide value from slider to configurable and multiply from configurable to slider :return: None

Parameters:

slider (QAbstractSlider)

Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("FloatConfigurable" inherits "Configurable": Methods:   #4 type=Signal, signature=valueChanged(double), parameters=double   #5 type=Slot, signature=update_value(double), parameters=double )
class RWESharp.Configurable.PythonTypes.DictConfigurable(mod, name: str, default: dict = None, description: str = '')[source]
Parameters:
valueChanged: Signal | None

Activated when value is changed

load_str_value(text: str) None[source]
Parameters:

text (str)

Return type:

None

save_str_value() str[source]
Return type:

str

update_value(value: dict)[source]
Parameters:

value (dict)

staticMetaObject = PySide6.QtCore.QMetaObject("DictConfigurable" inherits "Configurable": Methods:   #4 type=Signal, signature=valueChanged(QVariantMap), parameters=QVariantMap   #5 type=Slot, signature=update_value(QVariantMap), parameters=QVariantMap )