Answers for "choosing a file in python with simple dialog"

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

Code answers related to "choosing a file in python with simple dialog"

Python Answers by Framework

Browse Popular Code Answers by Language