mirror of
https://github.com/iperov/DeepFaceLive.git
synced 2024-12-25 15:31:13 -08:00
12 lines
385 B
Python
12 lines
385 B
Python
from PyQt6.QtWidgets import *
|
|
|
|
from .QXLabel import QXLabel
|
|
|
|
|
|
class QXVerticalLine(QXLabel):
|
|
def __init__(self, thickness=1, color=None):
|
|
super().__init__(size_policy=(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Expanding),
|
|
fixed_size=(thickness,None) )
|
|
if color is not None:
|
|
self.setStyleSheet(f'background: {color.name()};')
|