Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
def file_names():
folder = QFileDialog.getExistingDirectory()
files = QDir(folder).entryList(QDir.Files)
for file in files:
print(file)
if __name__ == "__main__":
app = QApplication(sys.argv)
file_names()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment