mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-06 04:52:14 -07:00
13 lines
404 B
Python
13 lines
404 B
Python
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_size=(None,thickness) )
|
|
if color is not None:
|
|
self.setStyleSheet(f'background: {color};')
|