Skip to content

BasicTimer

Qt Base Class: QBasicTimer

Signature: QBasicTimer(self) -> None

Base classes

Name Children Inherits
QBasicTimer
PySide6.QtCore
QBasicTimer(self) -> None

⋔ Inheritance diagram

graph TD
  1473299781840["core.BasicTimer"]
  1473289038416["QtCore.QBasicTimer"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473289038416 --> 1473299781840
  1473291690208 --> 1473289038416
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QBasicTimer

Timer events for objects.

Source code in prettyqt\core\basictimer.py
class BasicTimer(core.QBasicTimer):
    """Timer events for objects."""

    def __bool__(self):
        return self.isActive()

    def start_timer(
        self, msec: int, obj: core.QObject, timer_type: constants.TimerTypeStr
    ):
        self.start(msec, constants.TIMER_TYPE.get_enum_value(timer_type), obj)