activity.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:activity-browser 作者: LCA-ActivityBrowser 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号