QFileDialog有四项功能
1.打开文件夹 getExistingDirectory()
def openfolder(self):
self.folder = QFileDialog.getExistingDirectory(self)
print(self.folder)
2.打开特定文件名 getOpenFileName()
3.打开多个文件 getOpenFileNames()
4.保存文件 getSaveFileName()
QFileDialog有四项功能
1.打开文件夹 getExistingDirectory()
def openfolder(self):
self.folder = QFileDialog.getExistingDirectory(self)
print(self.folder)
2.打开特定文件名 getOpenFileName()
3.打开多个文件 getOpenFileNames()
4.保存文件 getSaveFileName()