def __init__(self, parent=None):
super().__init__(parent)
self.wizard = self.parent()
self.complete = False
self.description_label = QtWidgets.QLabel('Login to the ecoinvent homepage:')
self.username_edit = QtWidgets.QLineEdit()
self.username_edit.setPlaceholderText('ecoinvent username')
self.password_edit = QtWidgets.QLineEdit()
self.password_edit.setPlaceholderText('ecoinvent password'),
self.password_edit.setEchoMode(QtWidgets.QLineEdit.Password)
self.login_button = QtWidgets.QPushButton('login')
self.login_button.clicked.connect(self.login)
self.login_button.setCheckable(True)
self.password_edit.returnPressed.connect(self.login_button.click)
self.success_label = QtWidgets.QLabel('')
layout = QtWidgets.QVBoxLayout()
layout.addWidget(self.description_label)
layout.addWidget(self.username_edit)
layout.addWidget(self.password_edit)
hlay = QtWidgets.QHBoxLayout()
hlay.addWidget(self.login_button)
hlay.addStretch(1)
layout.addLayout(hlay)
layout.addWidget(self.success_label)
self.setLayout(layout)
db_import_wizard.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录