📜  pyqt 打开文件对话框 - Python 代码示例

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

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