Skip to content

Instantly share code, notes, and snippets.

@nicanor-romerovenier
Created August 20, 2016 16:48
Show Gist options
  • Save nicanor-romerovenier/58f8f9dafa4b5058dc6ef39132eff386 to your computer and use it in GitHub Desktop.
Save nicanor-romerovenier/58f8f9dafa4b5058dc6ef39132eff386 to your computer and use it in GitHub Desktop.
Programar Fácil - Tutorial de Python # 4 - Ejercicio 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nicanor Romero Venier"
__copyright__ = "Copyright 2016, Programar Fácil"
import tkinter
mi_ventana = tkinter.Tk()
mi_ventana.geometry("640x480")
# Creo un botón
mi_boton = tkinter.Button(text="Mi botón!")
# Coloco mi botón en la ventana principal
mi_boton.pack()
# Creo un segundo botón
mi_boton_2 = tkinter.Button(text="Mi otro botón!")
# Coloco mi segundo botón en la ventana principal
mi_boton_2.pack()
mi_ventana.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment