Advertisement
Guest User

Untitled

a guest
Aug 8th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import sys
  5. from PyQt4 import QtGui, QtCore
  6.  
  7. class Example(QtGui.QMainWindow):
  8.    
  9.     def __init__(self):
  10.         super(Example, self).__init__()
  11.         while True:
  12.             files = QtGui.QFileDialog.getOpenFileNames()
  13.             if not files: break
  14.             print list(files)
  15.  
  16. app = QtGui.QApplication(sys.argv)
  17. ex = Example()
  18. sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement