Created
June 18, 2020 07:39
-
-
Save jkariscodes/d356db44a0dec7bf0f5aabcbdc1d5b47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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