Added tkinter_filepicker_test.py
This commit is contained in:
parent
ff1d79012c
commit
b6039e3ffd
11
tkinter_filepicker_test.py
Normal file
11
tkinter_filepicker_test.py
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
import tkinter as tk
|
||||
from tkinter import filedialog
|
||||
|
||||
root = tk.Tk()
|
||||
root.withdraw() # Hide the root window
|
||||
|
||||
# Open the file picker dialog
|
||||
file_path = filedialog.askopenfilename()
|
||||
|
||||
print("Selected file:", file_path)
|
Loading…
x
Reference in New Issue
Block a user