Created
August 20, 2016 16:48
-
-
Save nicanor-romerovenier/58f8f9dafa4b5058dc6ef39132eff386 to your computer and use it in GitHub Desktop.
Programar Fácil - Tutorial de Python # 4 - 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 -*- | |
__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