Created
February 2, 2020 15:14
-
-
Save lfalanga/044d2624fd00ac2c651cbc1e9b1685ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
root = Tk() | |
e = Entry(root, width=63) | |
e.pack() | |
e.focus_set() | |
######### | |
diccionario = { | |
'identificador' : 1, | |
'nombre' : 'Leandro', | |
'apellido' : 'Falanga', | |
'telefono' : '1160527111' | |
} | |
a = len(diccionario) | |
b = list(diccionario.keys()) | |
c = str(a) + " ; " + ", ".join(b) | |
c = "N° elementos: %s, Claves: %s." % (str(a), ", ".join(b)) | |
var = IntVar() | |
######### | |
e.config(textvariable=var) | |
var.set(c) | |
mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment