Practica Usando GUI | Mostrar Ruta de un Archivo



from Tkinter import *
from tkFileDialog import askopenfilename

root = Tk()
root.geometry("500x500")
root.title("Mostrar ruta fichero")

et1 = Label(root, text = "Pulsa en el boton y elige una ruta").place(x=150,y=70)

def llamada():
    nombre  = StringVar()
    nombre.set(askopenfilename())
    Entry(root, width = 40, textvariable=nombre).place(x=100, y=100)

Entry(root,width = 40).place(x=100, y=100)
Button(root, text ="...", command = llamada).place(x=370,y=100)

root.mainloop()