how to open file dialog in pytohn

Solutions on MaxInterview for how to open file dialog in pytohn by the best coders in the world

showing results for - "how to open file dialog in pytohn"
Elvis
20 Jan 2020
1from tkinter import Tk
2from tkinter.filedialog import askopenfilename
3
4Tk().withdraw() # Added so Tk window doesn't appear on opening the dialog
5filePath = askopenfilename() # Full pile will be returned as string
6