# Path: Qt.py



from Qt import QtCore, QtWidgets, Qt
        self.toolbar = QtWidgets.QToolBar()
        self.toolbar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolbar.setFixedHeight(30)
        self.toolbar.layout().setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
        mainLayout.addWidget(self.toolbar)

        if title:
            self.setTitle(title)

    def updateStyle(self):
        lbl_sty = "background: %s; " % self.bg
        lbl_sty += " color: %s; font-size: 7pt; padding: 1px;" % self.fg
        self.label.setStyleSheet(lbl_sty)

    def setTitle(self, title):
        self.label.setText("%s" % title)

    def addWidget(self, widget):
        self.toolbar.addWidget(widget)

    def addAction(self, action):
        self.toolbar.addAction(action)


class VBoxWidget(QtWidgets.QWidget):
    """A QWidget with a Vertical Box"""

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


# Path: Qt.py



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

        self.toolbar = QtWidgets.QToolBar()
        self.toolbar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolbar.setFixedHeight(30)
        self.toolbar.layout().setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
        mainLayout.addWidget(self.toolbar)

        if title:
            self.setTitle(title)

    def updateStyle(self):
        lbl_sty = "background: %s; " % self.bg
        lbl_sty += " color: %s; font-size: 7pt; padding: 1px;" % self.fg
        self.label.setStyleSheet(lbl_sty)

    def setTitle(self, title):
        self.label.setText("%s" % title)

    def addWidget(self, widget):
        self.toolbar.addWidget(widget)

    def addAction(self, action):
        self.toolbar.addAction(action)


class VBoxWidget(QtWidgets.QWidget):
    """A QWidget with a Vertical Box"""

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


        lay = QtWidgets.QVBoxLayout()