16 importPyQt4.QtCore,PyQt4.QtGui # 获取文件路径对话框 file_name=QFileDialog.getOpenFileName(self,"open file dialog","C:\Users\Administrator\Desktop","Txt files(*.txt)") ##"open file Dialog "为文件对话框的标题,第三个是打开的默认路径,第四个是文件类型过滤器 # 保存文件对话框 file_path=...