LINK: DESCARGAR CÓDIGO
| EJECUCIÓN DE PROGRAMA |
from Tkinter import *
from tkFileDialog import askopenfilename
root = Tk()
root.geometry("400x200")
root.title("Mostrar Ruta Fichero")
et1 = Label(root, text = "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 ="Search", command = llamada).place(x=200, y=131)
root.mainloop()
No hay comentarios:
Publicar un comentario