__slots__ python: Python Attrs: Advanced Data Classes, With Example Code • Python ... . Qt for Python Signals and Slots - Qt Wiki. Python GUIs – Create GUI applications with Python and Qt.
Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent.
This is recommended when both signal and
slot is implemented in python. By using PyQt_PyObject we avoid unnecessary conversions between python objects and C++ types and it is more consistent with python dynamically typed nature.
Learn how to Create Python GUIs with Python & PyQt.