Skip to content

Instantly share code, notes, and snippets.

@nikhilkumarsingh
Created May 3, 2018 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhilkumarsingh/d38304bd95e2a0450d6878cea05d01d9 to your computer and use it in GitHub Desktop.
Save nikhilkumarsingh/d38304bd95e2a0450d6878cea05d01d9 to your computer and use it in GitHub Desktop.
select files using Tkinter
import tkinter as tk
from tkinter import filedialog
root = tk.Tk()
root.withdraw()
file_path = filedialog.askopenfilename()
print(file_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment