python tkinter filedialog

Solutions on MaxInterview for python tkinter filedialog by the best coders in the world

showing results for - "python tkinter filedialog"
Leane
12 Aug 2019
1from tkinter import filedialog
2
3						# Where it open to.					# What the window is called.	# What file types the user can choose between. first one is the defualt. (("what ever", "*.format"), ("what ever 2", "*.format2"))
4filedialog.askopenfilename(initialdir=os.path.normpath("C://"), title="Example", filetypes =(("PNG", "*.png"),("JPG", "*.jpg"),("All Files","*.*")))
Olivia
08 Mar 2017
1from tkinter import filedialog
2
3								# Where it open to.					# What the window is called.
4folder = filedialog.askdirectory(initialdir=os.path.normpath("C://"), title="Example")