Skip to content

SocketNotifier

Qt Base Class: QSocketNotifier

Signature: QSocketNotifier(self, arg__1: object, arg__2: PySide6.QtCore.QSocketNotifier.Type, parent: Optional[PySide6.QtCore.QObject] = None) -> None QSocketNotifier(self, arg__1: PySide6.QtCore.QSocketNotifier.Type, parent: Optional[PySide6.QtCore.QObject] = None) -> None QSocketNotifier(self, socket: int, arg__2: PySide6.QtCore.QSocketNotifier.Type, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QSocketNotifier
PySide6.QtCore
QSocketNotifier(self, arg__1: object, arg__2: PySide6.QtCore.QSocketNotifier.Type, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473299816000["core.SocketNotifier"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473288843216["QtCore.QSocketNotifier"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473299816000
  140713234304496 --> 1473299815024
  1473288843216 --> 1473299816000
  1473288842240 --> 1473288843216
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QSocketNotifier

Support for monitoring activity on a file descriptor.

Source code in prettyqt\core\socketnotifier.py
class SocketNotifier(core.ObjectMixin, core.QSocketNotifier):
    """Support for monitoring activity on a file descriptor."""

    # def __repr__(self):
    #     return f"{type(self).__name__}({self.socket()}, {self.type()})"

    def get_type(self) -> TypeStr:
        """Return socket event type.

        Returns:
            socket event type
        """
        return TYPE.inverse[self.type()]

get_type() -> TypeStr

Return socket event type.

Source code in prettyqt\core\socketnotifier.py
def get_type(self) -> TypeStr:
    """Return socket event type.

    Returns:
        socket event type
    """
    return TYPE.inverse[self.type()]

⌗ Property table

Qt Property Type Doc
objectName QString