gdesk.gcore.qgc module

The Garbage Collector timer in the Qt Event Loop.

class gdesk.gcore.qgc.QGarbageCollector(parent, debug=False)

Bases: PySide2.QtCore.QObject

Disable automatic garbage collection and instead collect manually.

Timeout every INTERVAL milliseconds.

This is done to ensure that garbage collection only happens in the GUI thread, as otherwise Qt can crash.

INTERVAL = 5000
check()

Do the garbage collection.

disable()

Disable the timer.

enable()

Enable the timer.

staticMetaObject = <PySide2.QtCore.QMetaObject object>