Multiple file selection in Qfiledailoug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klia
    New Member
    • Oct 2008
    • 14

    Multiple file selection in Qfiledailoug

    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.QFileDial og.getOpenFileN ame(self, 'Open file','/home/', ("Images (*.png *.tiff *.jpg)"))

    Thank you
  • boxfish
    Recognized Expert Contributor
    • Mar 2008
    • 469

    #2
    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.QFileDial og.getOpenFileN ames(self, 'Open file','/home/', ("Images (*.png *.tiff *.jpg)"))

    I hope this works.

    Comment

    • klia
      New Member
      • Oct 2008
      • 14

      #3
      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

      Comment

      Working...