Last active
October 12, 2022 14:58
-
-
Save Basemera/a1e4c80e177530c9d7bb77f4b5c5d8ac to your computer and use it in GitHub Desktop.
This file contains 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
from tkinter import filedialog as fd | |
def open_file_selection(): | |
filetypes = ( | |
('pdf files', '*.pdf'), | |
('doc files', '*.doc') | |
) | |
files = fd.askopenfilenames( | |
filetypes=filetypes, | |
initialdir='/Users/phionabasemera/Documents/pdfscrapper' | |
) | |
print(files) | |
open_file_selection() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment