Awesome-Python-Scripts/File-Explorer-Dialog-Box/select_file_tk.py

9 lines
143 B
Python
Raw Normal View History

2018-10-03 06:15:59 +00:00
import tkinter as tk
from tkinter import filedialog
root = tk.Tk()
root.withdraw()
file_path = filedialog.askopenfilename()
print(file_path)