def __init__(self, parent=None):
super().__init__(parent)
self.path_edit = QtWidgets.QLineEdit()
self.registerField('dirpath*', self.path_edit)
self.browse_button = QtWidgets.QPushButton('Browse')
self.browse_button.clicked.connect(self.get_directory)
layout = QtWidgets.QVBoxLayout()
layout.addWidget(QtWidgets.QLabel(
'Choose location of existing ecospold2 directory:'))
layout.addWidget(self.path_edit)
browse_lay = QtWidgets.QHBoxLayout()
browse_lay.addWidget(self.browse_button)
browse_lay.addStretch(1)
layout.addLayout(browse_lay)
self.setLayout(layout)
db_import_wizard.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录