mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-06 04:52:14 -07:00
19 lines
419 B
Python
19 lines
419 B
Python
from PyQt6.QtCore import *
|
|
|
|
|
|
class QXTimer(QTimer):
|
|
|
|
def __init__(self, interval=None, timeout=None, single_shot=False, start=False):
|
|
super().__init__()
|
|
|
|
if interval is not None:
|
|
self.setInterval(interval)
|
|
|
|
if timeout is not None:
|
|
self.timeout.connect(timeout)
|
|
|
|
if single_shot:
|
|
self.setSingleShot(True)
|
|
|
|
if start:
|
|
self.start()
|