Skip to content

Instantly share code, notes, and snippets.

@nicanor-romerovenier
Last active April 26, 2018 22:04
Show Gist options
  • Select an option

  • Save nicanor-romerovenier/e600b338f95185b4f9d4b8d6fe23b3a1 to your computer and use it in GitHub Desktop.

Select an option

Save nicanor-romerovenier/e600b338f95185b4f9d4b8d6fe23b3a1 to your computer and use it in GitHub Desktop.
Programar Fácil - Tutorial de Python # 5
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter
def accion_de_mi_boton():
print("Mi boton 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_ventana.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment