from PyQt5 import QtWidgets class OptionsGroupUI(QtWidgets.QGroupBox): app = None def __init__(self, title, parent=None): # QtGui.QGroupBox.__init__(self, title, parent=parent) super(OptionsGroupUI, self).__init__() self.setStyleSheet(""" QGroupBox { font-size: 16px; font-weight: bold; } """) self.layout = QtWidgets.QVBoxLayout() self.setLayout(self.layout)