Facebook
From crisyelit, 4 Years ago, written in Plain Text.
This paste is a reply to error pyhon from crisyelit - go back
Embed
Viewing differences between error pyhon and Re: error pyhon
#!/usr/bin/python3
from tkinter import *
from tkinter import filedialog
#frame raiz de nuestra ventana

root=Tk()
#root.pack()
#root.root.iconbitmap("einstein.ico")

def abreFichero():
        fichero=filedialog.askopenfilename(title="Abrir",initialdir="/", filetypes=((("Ficheros Calc","*.ods"),("Ficheros de presentacion","*.odt"),("Todos los archivos","*.*")))

                #print(fichero)

botonAbrir= Button(root,text="Abrir fichero", command=abreFichero).pack()
botonAbrir.grid(row=1, column=0, sticky="e", padx=10, pady=10)


root.mainloop()