31 lines
447 B
Python
31 lines
447 B
Python
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() |