Last active
September 19, 2016 21:25
-
-
Save nicanor-romerovenier/c146619ce3512866f079964705a7c160 to your computer and use it in GitHub Desktop.
Programar Fácil - Tutorial de Python # 5 - Ejercicio 2
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 | |
def accion_de_mi_boton(): | |
print("Mi boton ha sido presionado!") | |
def accion_de_mi_boton_3(): | |
print("Mi boton 3 ha sido presionado!") | |
mi_ventana = tkinter.Tk() | |
mi_ventana.geometry("640x480") | |
mi_boton = tkinter.Button(text="Mi botón!", command=accion_de_mi_boton) | |
mi_boton.pack() | |
mi_boton_2 = tkinter.Button(text="Mi botón 2!", command=accion_de_mi_boton) | |
mi_boton_2.pack() | |
mi_boton_3 = tkinter.Button(text="Mi botón 3!", command=accion_de_mi_boton_3) | |
mi_boton_3.pack() | |
mi_ventana.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment