Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. try:
  2. from tkinter import Tk, filedialog
  3. except:
  4. print("Failed to import Tkinter")
  5. Tk().withdraw() # Stop root window from appearing
  6. file_names = filedialog.askopenfilenames()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement