469,271 Members | 1,326 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

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 3461
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.