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)
db_import_wizard.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录