Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
path = str(QtGui.QFileDialog.getExistingDirectory(self, "Select Directory "))
如何读取文件格式directorydialog
directorydialog
file = str(QtGui.QFileDialog.getOpenFileName(self, "Select File", "", "*.png *.jpg")) print file
这将仅列出文件png,jpg键入您要列出的文件扩展名。
png
jpg