devctrl.gui.exception.UncaughtHook#

class UncaughtHook(*args, show_traceback=False, **kwargs)[source]#

Bases: QObject

Methods

Attributes

destroyed

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

objectNameChanged

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

staticMetaObject

__annotations__ = {}#
__dict__ = mappingproxy({'__module__': 'devctrl.gui.exception', '__firstlineno__': 22, '_exception_caught': <unbound PYQT_SIGNAL _exception_caught(PyQt_PyObject)>, '__init__': <function UncaughtHook.__init__>, 'exception_hook': <function UncaughtHook.exception_hook>, '__static_attributes__': ('show_traceback',), '__doc__': None, '__annotations__': {}})#
__firstlineno__ = 22#
classmethod __getattr__(self, name: str | None) Any#
__init__(*args, show_traceback=False, **kwargs)[source]#
__module__ = 'devctrl.gui.exception'#
classmethod __new__(*args, **kwargs)#
__static_attributes__ = ('show_traceback',)#
__weakref__#

list of weak references to the object

_exception_caught#

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

classmethod blockSignals(self, b: bool) bool#
classmethod childEvent(self, a0: QChildEvent | None)#
classmethod children(self) list[QObject]#
classmethod connectNotify(self, signal: QMetaMethod)#
classmethod customEvent(self, a0: QEvent | None)#
classmethod deleteLater(self)#
destroyed#

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

classmethod disconnect(a0: QMetaObject.Connection) bool#
classmethod disconnect(self)
classmethod disconnectNotify(self, signal: QMetaMethod)#
classmethod dumpObjectInfo(self)#
classmethod dumpObjectTree(self)#
classmethod dynamicPropertyNames(self) list[QByteArray]#
classmethod event(self, a0: QEvent | None) bool#
classmethod eventFilter(self, a0: QObject | None, a1: QEvent | None) bool#
exception_hook(exc_type, exc_value, exc_traceback)[source]#

Function handling uncaught exceptions. It is triggered each time an uncaught exception occurs.

classmethod findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT#
classmethod findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
classmethod findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]#
classmethod findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
classmethod inherits(self, classname: str | None) bool#
classmethod installEventFilter(self, a0: QObject | None)#
classmethod isQuickItemType(self) bool#
classmethod isSignalConnected(self, signal: QMetaMethod) bool#
classmethod isWidgetType(self) bool#
classmethod isWindowType(self) bool#
classmethod killTimer(self, id: int)#
classmethod metaObject(self) QMetaObject | None#
classmethod moveToThread(self, thread: QThread | None)#
classmethod objectName(self) str#
objectNameChanged#

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

classmethod parent(self) QObject | None#
classmethod property(self, name: str | None) Any#
classmethod pyqtConfigure(...)#

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

classmethod receivers(self, signal: PYQT_SIGNAL) int#
classmethod removeEventFilter(self, a0: QObject | None)#
classmethod sender(self) QObject | None#
classmethod senderSignalIndex(self) int#
classmethod setObjectName(self, name: QByteArray | bytes | bytearray | memoryview | str | None)#
classmethod setParent(self, a0: QObject | None)#
classmethod setProperty(self, name: str | None, value: Any) bool#
classmethod signalsBlocked(self) bool#
classmethod startTimer(self, interval: int, timerType: Qt.TimerType = Qt.CoarseTimer) int#
staticMetaObject = <PyQt6.QtCore.QMetaObject object>#
classmethod thread(self) QThread | None#
classmethod timerEvent(self, a0: QTimerEvent | None)#
classmethod tr(sourceText: str | None, disambiguation: str | None = None, n: int = -1) str#