📜  在按钮单击 pyqt5 上打开文件对话框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:34.945000             🧑  作者: Mango

代码示例2
def open(self):
    path = QFileDialog.getOpenFileName(self, 'Open a file', '',
                                     'All Files (*.*)')
    if path != ('', ''):
        print(path[0])