diff --git a/clase_10/programa.py b/clase_10/programa.py new file mode 100644 index 0000000..2fc024d --- /dev/null +++ b/clase_10/programa.py @@ -0,0 +1,31 @@ +from tkinter import * + +def guardar(): + print("Se presiono el boton") + print(entrada.get()) + +ventana= Tk() +ventana.geometry("800x500") +ventana.title("Mi primer Programa") +ventana.resizable(0,0) + +etiqueta= Label( + ventana, + text="Registro alumno" +) +etiqueta.pack() + +entrada= Entry( + ventana +) +entrada.pack() + +boton = Button( + ventana, + text="Guardar", + background="RED", + command=guardar + +) +boton.pack() +ventana.mainloop() \ No newline at end of file diff --git a/clase_10/tabla_propiedades_widgets_tkinter.pdf b/clase_10/tabla_propiedades_widgets_tkinter.pdf new file mode 100644 index 0000000..1745260 Binary files /dev/null and b/clase_10/tabla_propiedades_widgets_tkinter.pdf differ diff --git a/clase_8/atributos.py b/clase_8/atributos.py index 8ab778b..f3edb2f 100644 --- a/clase_8/atributos.py +++ b/clase_8/atributos.py @@ -2,7 +2,7 @@ class Persona: def __init__(self, nombre, edad): self.nombre = nombre - self.__edad = edad #oculto el verdadero nombre del atributo + self.__edad = edad #name Mangling def getEdad(self): return self.__edad diff --git a/orientaciones.png b/orientaciones.png new file mode 100644 index 0000000..e70043f Binary files /dev/null and b/orientaciones.png differ