471,595 Members | 1,073 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

Multiple file selection in Qfiledailoug

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
2 3899
boxfish
469 Expert 256MB
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
klia
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.

Similar topics

reply views Thread by Sylwia | last post: by
reply views Thread by Ringwraith | last post: by
2 posts views Thread by yanivoliver | last post: by
2 posts views Thread by Dolorous Edd | last post: by
2 posts views Thread by Prashant | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.