Load file from FileDialog : FileDialog : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » FileDialog »

 

Load file from FileDialog


Load file from FileDialog
from Tkinter import *
import tkFileDialog
def openwindows():
    statusbar.config(text = open.show())

root = Tk()
myfiletypes = [('Python files', '*.py'), ('All files', '*')]
open = tkFileDialog.Open(root, filetypes = myfiletypes)
Button(root, text="Open File Dialog", command=openwindows).pack()

statusbar = Label(root, text="", bd=1, relief=SUNKEN, anchor=W)
statusbar.pack(side=BOTTOM, fill=X)
root.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» FileDialog