# Path: Qt.py



from Qt import QtCore, QtWidgets, Qt
        self.layout().addWidget(widget, stretch)

    def addLayout(self, layout, stretch=0):
        self.layout().addLayout(layout, stretch)


class HBoxWidget(QtWidgets.QWidget):
    """A `QWidget` with a Horizontal Box"""

    def __init__(self, parent=None, margin=0):
        super().__init__(parent)

        lay = QtWidgets.QVBoxLayout()
        lay.setContentsMargins(margin, margin, margin, margin)
        self.setLayout(lay)

    def addWidget(self, widget, stretch=0):
        self.layout().addWidget(widget, stretch)

    def addLayout(self, layout, stretch=0):
        self.layout().addLayout(layout, stretch)


class HeaderLabel(QtWidgets.QLabel):
    def __init__(self, parent=None, text="", start=None, end=None, align=None):
        super().__init__(parent)

        self.setText(text)

        align = align if align else Qt.AlignCenter

# Path: Qt.py



# Path: ts2/gui/widgets.py
from Qt import QtCore, QtWidgets, Qt

        self.layout().addWidget(widget, stretch)

    def addLayout(self, layout, stretch=0):
        self.layout().addLayout(layout, stretch)


class HBoxWidget(QtWidgets.QWidget):
    """A `QWidget` with a Horizontal Box"""

    def __init__(self, parent=None, margin=0):
        super().__init__(parent)

        lay = QtWidgets.QVBoxLayout()
        lay.setContentsMargins(margin, margin, margin, margin)
        self.setLayout(lay)

    def addWidget(self, widget, stretch=0):
        self.layout().addWidget(widget, stretch)

    def addLayout(self, layout, stretch=0):
        self.layout().addLayout(layout, stretch)


class HeaderLabel(QtWidgets.QLabel):
    def __init__(self, parent=None, text="", start=None, end=None, align=None):
        super().__init__(parent)

        self.setText(text)

        align = align if align else Qt.AlignCenter

        self.setAlignment(align | Qt.AlignVCenter)