Answers for "python tkinter open file dialog example"

1

how to open file dialog in pytohn

from tkinter import Tk
from tkinter.filedialog import askopenfilename

Tk().withdraw() # Added so Tk window doesn't appear on opening the dialog
filePath = askopenfilename() # Full pile will be returned as string
Posted by: Guest on March-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language