python qt(pyqt)的文件打開、文件保存、文件夾選擇對話框

首先導入pyqt4模塊: import PyQt4.QtCore,PyQt4.QtGui 獲取文件路徑對話框: file_name = QFileDialog.getOpenFileName(self,"open file dialog","C:\Users\Administrator\Desktop","Txt files(*.txt)") ##"open file Dialog
相關文章
相關標籤/搜索