class StatisticsTab(QtWidgets.QWidget): def __init__(self, parent): QtWidgets.QWidget.__init__(self, parent) self.control = None hbox = QtWidgets.QHBoxLayout() self.html_view = HTMLWindow() self.tree_list = TreeList(self.html_view) self.html_view.tree_list = self.tree_list self.tree_list.setMinimumWidth(150) hbox.addWidget(self.tree_list) hbox.addWidget(self.html_view) self.setLayout(hbox) hbox.setContentsMargins(0, 0, 0, 0) self.show() def update_results(self, results): self.html_view.update_results(results) self.tree_list.update_results(results)
def __init__(self, parent): QtWidgets.QWidget.__init__(self, parent) self.control = None hbox = QtWidgets.QHBoxLayout() self.html_view = HTMLWindow() self.tree_list = TreeList(self.html_view) self.html_view.tree_list = self.tree_list self.tree_list.setMinimumWidth(150) hbox.addWidget(self.tree_list) hbox.addWidget(self.html_view) self.setLayout(hbox) hbox.setContentsMargins(0, 0, 0, 0) self.show()