PRACTICA 49: CREAR UNA VENTANA, BOTÓN Y ETIQUETA




#!/usr/bin/python
# -*- coding: utf-8 -*-
# www.pythondiario.com
 
from Tkinter import *
 
app = Tk()
app.title("Aplicacion grafica en python")
etiqueta = Label(app, text="Hola mundo!!!")
boton = Button(app, text="OK!!")
 
etiqueta.pack()
boton.pack()
app.mainloop()

No hay comentarios:

Publicar un comentario