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
# -*- coding: utf-8 -*- | |
from Tkinter import * | |
root = Tk() | |
root.config(width=350, height=250) | |
root.title("Aplicación de escritorio en Tk") | |
frame = Frame(root) | |
frame.place(x=0, y=0, width=350, height=250) | |
button = Button(frame, text="Hola mundo!") | |
button.place(x=50, y=50) | |
textbox = Entry(frame) | |
textbox.insert(0, "Ingrese su nombre...") | |
textbox.place(x=50, y=100) | |
checkbox = Checkbutton(frame, text="Opción 1") | |
checkbox.place(x=50, y=150) | |
root.mainloop() |
No hay comentarios:
Publicar un comentario