mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-16 10:03:42 -07:00
code release
This commit is contained in:
parent
b941ba41a3
commit
a902f11f74
354 changed files with 826570 additions and 1 deletions
19
xlib/qt/core/QXTimer.py
Normal file
19
xlib/qt/core/QXTimer.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue