RWESharp.Configurable.PythonTypes.IntConfigurable

class RWESharp.Configurable.PythonTypes.IntConfigurable(mod, name: str, default: int = 0, description: str = '')[source]

Bases: Configurable

Parameters:
__init__(mod, name: str, default: int = 0, description: str = '')[source]

Abstract object for creating custom config parameters and storing them :param mod: mod to link configurable :param name: name of object. should not contain spaces or any special characters :param default: default value of variable :param description: description in config menu

Parameters:

Methods

__init__(mod, name[, default, description])

Abstract object for creating custom config parameters and storing them :param mod: mod to link configurable :param name: name of object.

blockSignals(object, /)

childEvent(object, /)

children()

connect

connectNotify(object, /)

customEvent(object, /)

deleteLater()

disconnect

disconnectNotify(object, /)

dumpObjectInfo()

dumpObjectTree()

dynamicPropertyNames()

emit

event(object, /)

eventFilter

findChild

findChildren

inherits(object, /)

installEventFilter(object, /)

isQuickItemType()

isSignalConnected(object, /)

isWidgetType()

isWindowType()

killTimer(object, /)

link_combobox(combobox)

Links combobox with configurable :param combobox: Combobox to link

link_mod(mod)

link_radio(buttons)

Links list of radio buttons to Configurable

link_slider(slider[, releaseonly])

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

link_slider_spinbox(slider, spinbox[, ...])

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

link_spinbox(spin[, releaseonly])

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

load_str_value(text)

metaObject()

moveToThread(object, /)

objectName()

parent()

property(object, /)

receivers(object, /)

removeEventFilter(object, /)

reset_value()

save_str_value()

sender()

senderSignalIndex()

setObjectName(object, /)

setParent(object, /)

setProperty

signalsBlocked()

startTimer

thread()

timerEvent(object, /)

tr

update_value(value)

update_value_default(value)

Attributes

destroyed

objectNameChanged

staticMetaObject

valueChanged

Activated when value is changed

valueChanged: Signal | None

Activated when value is changed

radiolist: list[QRadioButton]
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

blockSignals(object, /)
childEvent(object, /)
children()
static connect()
connectNotify(object, /)
customEvent(object, /)
deleteLater()
destroyed
static disconnect()
disconnectNotify(object, /)
dumpObjectInfo()
dumpObjectTree()
dynamicPropertyNames()
emit()
event(object, /)
eventFilter()
findChild()
findChildren()
inherits(object, /)
installEventFilter(object, /)
isQuickItemType()
isSignalConnected(object, /)
isWidgetType()
isWindowType()
killTimer(object, /)
metaObject()
moveToThread(object, /)
objectName()
objectNameChanged
parent()
property(object, /)
receivers(object, /)
removeEventFilter(object, /)
reset_value()
sender()
senderSignalIndex()
setObjectName(object, /)
setParent(object, /)
setProperty()
signalsBlocked()
startTimer()
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 )
thread()
timerEvent(object, /)
classmethod tr()
update_value_default(value: ...)
Parameters:

value (...)