[PyQt] QFileDialog.getOpenFileNames selection?

Lukas Hetzenecker LuHe at gmx.at
Sat Aug 8 22:06:01 BST 2009


Hello,

try this:

for file in fileName:
   print file

or:

fileName = list(fileName)
print fileName

Lukas

Am Samstag 08 August 2009 22:27:19 schrieb rudsonalves at yahoo.com.br:
> How I get names selected in QFileDialog.getOpenFileNames?
>
> >>> fileName = QFileDialog.getOpenFileNames(None,"Open
>
> Image","/home","All (*.*)")
>
> >>> print fileName
>
> <PyQt4.QtCore.QStringList object at 0x7f6ef4be51e8>
>
> __________________________________________________
> Faça ligações para outros computadores com o novo Yahoo! Messenger
> http://br.beta.messenger.yahoo.com/
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt




More information about the PyQt mailing list