lunes, 12 de noviembre de 2018

Abrir archivos




 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/usr/bin/python
# -*- coding: utf-8 -*-
# www.pythondiario.com

from Tkinter import *
from tkFileDialog import askopenfilename


def llamada():
    nombre = askopenfilename()
    print nombre


errmsg = 'Error!'
Button(text='Abrir archivo', command=llamada).pack(fill=X)
mainloop()

No hay comentarios.:

Publicar un comentario