Advertisement
Guest User

Untitled

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