By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,403 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,403 IT Pros & Developers. It's quick & easy.

Multiple file selection in Qfiledailoug

P: 14
Hello guys

i was wondering how can i be able to have multiple file selection whenever i browse my directory and choose files using Qfiledailoug

this is the code to lunch the file dailoug

files = QtGui.QFileDialog.getOpenFileName(self, 'Open file','/home/', ("Images (*.png *.tiff *.jpg)"))

Thank you
Mar 6 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 469
I have not used PyQt, but from what I read on the internet it looks like you can just pluralize the function's name:

files = QtGui.QFileDialog.getOpenFileNames(self, 'Open file','/home/', ("Images (*.png *.tiff *.jpg)"))

I hope this works.
Mar 6 '09 #2

P: 14
Thank you man, it worked but python complains that there is no buffer or string to hold the selected filles selected in order to processes them
Mar 7 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.