db_import_wizard.py 文件源码

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

项目:activity-browser 作者: LCA-ActivityBrowser 项目源码 文件源码
def __init__(self, parent=None):
        super().__init__(parent)
        self.wizard = self.parent()
        options = ['ecoinvent homepage',
                   'local 7z-archive',
                   'local directory with ecospold2 files']
        self.radio_buttons = [QtWidgets.QRadioButton(o) for o in options]
        self.option_box = QtWidgets.QGroupBox('Choose type of database import')
        box_layout = QtWidgets.QVBoxLayout()
        for i, button in enumerate(self.radio_buttons):
            box_layout.addWidget(button)
            if i == 0:
                button.setChecked(True)
        self.option_box.setLayout(box_layout)

        self.layout = QtWidgets.QVBoxLayout()
        self.layout.addWidget(self.option_box)
        self.setLayout(self.layout)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号