Files
C_C++
Haskell
Java
LaTeX
Misc.
Python
ai
modules
ascii_injection.py
ascii_nn_input_helper.py
asciifarts_scrapper.py
better_exceptions_test.py
combinator.py
decorator.py
dpt.py
format.py
graph.py
group.py
int_memory.ctype.py
int_memory.py.py
leno.py
list2data.py
matplotlib_hw.py
nnadd.py
otest.py
pdf2txt
snek_help.py
tkinter_filepicker_test.py
torus.py
Vim
Webdev
git
.gitignore
Makefile
tests/Python/tkinter_filepicker_test.py
2024-03-10 16:02:52 +01:00

12 lines
217 B
Python

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)