def __init__(self, parent=None): super(ScrollArea, self).__init__(parent) self.control = parent self.techs = Technicals(self) self.setWidget(self.techs) self.setWidgetResizable(True)
class ScrollArea(QScrollArea): """Where the technicals will show up, appears after ToolBar2""" def __init__(self, parent=None): super(ScrollArea, self).__init__(parent) self.control = parent self.techs = Technicals(self) self.setWidget(self.techs) self.setWidgetResizable(True) def addTechnical(self, technicalName): self.techs.addTechnical(technicalName)