Created
September 21, 2016 16:43
-
-
Save nicanor-romerovenier/c21bcf1c41ece4ba0eab910deece963b to your computer and use it in GitHub Desktop.
Programar Fácil - Tutorial de Python # 11 - Ejercicio 1
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import tkinter | |
from tkinter import messagebox | |
def accion_de_mi_boton(): | |
mi_texto_1 = mi_entrada_1.get() | |
mi_texto_2 = mi_entrada_2.get() | |
print(int(mi_texto_1)) | |
print(int(mi_texto_2)) | |
mi_ventana = tkinter.Tk() | |
mi_ventana.geometry("640x480") | |
mi_entrada_1 = tkinter.Entry() | |
mi_entrada_1.pack() | |
mi_entrada_2 = tkinter.Entry() | |
mi_entrada_2.pack() | |
mi_boton = tkinter.Button(text="Mi botón!", command=accion_de_mi_boton) | |
mi_boton.pack() | |
mi_ventana.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment