Guest User

Untitled

a guest
Aug 1st, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import tkinter
  2. from tkinter import filedialog
  3.  
  4. tkinter.Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing
  5. filename = filedialog.askopenfilename() # show an "Open" dialog box and return the path to the selected file
  6. print(filename)
Advertisement
Add Comment
Please, Sign In to add comment