Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter
- from tkinter import filedialog
- tkinter.Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing
- filename = filedialog.askopenfilename() # show an "Open" dialog box and return the path to the selected file
- print(filename)
Advertisement
Add Comment
Please, Sign In to add comment