settings_handlers package

Each handler module must contain one or more classes inherited from BaseHandler and have handlers dictionary that links each setting type to the class.

` {"setting_type": SettingHandler} `

initElem method creates the widget, links it to the custom setter function and returns it. Please see settings_handlers.basic module for examples

Submodules

settings_handlers.base module

class settings_handlers.base.BaseHandler(value_getter, value_setter, parent_obj=None)

Bases: QObject

Base settings handler class

Methods

blockSignals(self, b)

childEvent(self, a0)

children(self)

connectNotify(self, signal)

customEvent(self, a0)

deleteLater(self)

destroyed

destroyed(self, object: typing.Optional[QObject] = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, signal)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

event(self, a0)

eventFilter(self, a0, a1)

fetchValue(wid)

(Presets) Get value of the widget, must return the value or None if not supported

findChild(-> QObject)

findChildren(...)

inherits(self, classname)

initElem(elem)

Initialize elem with specified type, must return QWidget

installEventFilter(self, a0)

isQuickItemType(self)

isSignalConnected(self, signal)

isWidgetType(self)

isWindowType(self)

killTimer(self, id)

linkElem(elem, registriesName)

(External settings registries) Link element to settings group "registriesName"

metaObject(self)

moveToThread(self, thread)

objectName(self)

objectNameChanged

objectNameChanged(self, objectName: str) [signal]

parent(self)

property(self, name)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

receivers(self, signal)

removeEventFilter(self, a0)

sender(self)

senderSignalIndex(self)

setObjectName(self, name)

setParent(self, a0)

setProperty(self, name, value)

setter()

Setter slot, needs to be manually connected to the related widget

signalsBlocked(self)

startTimer(self, interval[, timerType])

thread(self)

timerEvent(self, a0)

tr(sourceText[, disambiguation, n])

updateValue(wid, value)

(Presets) Set the value of the widget, must return True if ok, False if not supported

Initialize the handler

Parameters:
value_getter

Property getter function (settings.SettingsWindow.getValue)

value_setter

Property setter function (settings.SettingsWindow.setValue)

parent_object

Weakref to the parent object

Methods

blockSignals(self, b)

childEvent(self, a0)

children(self)

connectNotify(self, signal)

customEvent(self, a0)

deleteLater(self)

destroyed

destroyed(self, object: typing.Optional[QObject] = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, signal)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

event(self, a0)

eventFilter(self, a0, a1)

fetchValue(wid)

(Presets) Get value of the widget, must return the value or None if not supported

findChild(-> QObject)

findChildren(...)

inherits(self, classname)

initElem(elem)

Initialize elem with specified type, must return QWidget

installEventFilter(self, a0)

isQuickItemType(self)

isSignalConnected(self, signal)

isWidgetType(self)

isWindowType(self)

killTimer(self, id)

linkElem(elem, registriesName)

(External settings registries) Link element to settings group "registriesName"

metaObject(self)

moveToThread(self, thread)

objectName(self)

objectNameChanged

objectNameChanged(self, objectName: str) [signal]

parent(self)

property(self, name)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

receivers(self, signal)

removeEventFilter(self, a0)

sender(self)

senderSignalIndex(self)

setObjectName(self, name)

setParent(self, a0)

setProperty(self, name, value)

setter()

Setter slot, needs to be manually connected to the related widget

signalsBlocked(self)

startTimer(self, interval[, timerType])

thread(self)

timerEvent(self, a0)

tr(sourceText[, disambiguation, n])

updateValue(wid, value)

(Presets) Set the value of the widget, must return True if ok, False if not supported

fetchValue(wid)

(Presets) Get value of the widget, must return the value or None if not supported

Parameters:
wid

Widget to fetch

initElem(elem)

Initialize elem with specified type, must return QWidget

Parameters:
elem

Element dictionary (loaded from the settings registry)

linkElem(elem, registriesName)

(External settings registries) Link element to settings group “registriesName”

Widget signal must be linked to settings.showLinkedWidgets(str), where str is the selected element name

Function must return True if supported

Parameters:
elem

Widget to link

registriesName

Widget property to set

setter()

Setter slot, needs to be manually connected to the related widget

updateValue(wid, value)

(Presets) Set the value of the widget, must return True if ok, False if not supported

Parameters:
wid

Widget to update

value

Value to set

Module contents