DeepFaceLive/xlib/qt/widgets/QXVerticalLine.py
2021-07-23 17:34:49 +04:00

11 lines
378 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_width=thickness)
if color is not None:
self.setStyleSheet(f'background: {color.name()};')