def get_details_widget(self):
self.production = ExchangeTable(self, production=True)
self.inputs = ExchangeTable(self)
self.flows = ExchangeTable(self, biosphere=True)
self.upstream = ExchangeTable(self)
layout = QtWidgets.QVBoxLayout()
self.metadata = ActivityDataGrid()
layout.addWidget(self.metadata)
# splitter = QtWidgets.QSplitter(QtCore.Qt.Vertical)
tables = [
(self.production, "Products:"),
(self.inputs, "Technosphere Inputs:"),
(self.flows, "Biosphere flows:"),
(self.upstream, "Downstream consumers:"),
]
for table, label in tables:
layout.addWidget(DetailsGroupBox(label, table))
# layout.addWidget(splitter)
layout.addStretch()
widget = QtWidgets.QWidget(self)
widget.setLayout(layout)
return widget
评论列表
文章目录