mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-30 11:40:37 -07:00
code release
This commit is contained in:
parent
b941ba41a3
commit
a902f11f74
354 changed files with 826570 additions and 1 deletions
13
xlib/qt/widgets/QXHorizontalLine.py
Normal file
13
xlib/qt/widgets/QXHorizontalLine.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from PyQt6.QtWidgets import *
|
||||
|
||||
from .QXLabel import QXLabel
|
||||
|
||||
|
||||
class QXHorizontalLine(QXLabel):
|
||||
def __init__(self, thickness=1,
|
||||
color=None):
|
||||
|
||||
super().__init__(size_policy=(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed),
|
||||
fixed_height=thickness )
|
||||
if color is not None:
|
||||
self.setStyleSheet(f'background: {color};')
|
Loading…
Add table
Add a link
Reference in a new issue