May 6, 2024

Python (Tkinter)

from tkinter import *

ventana = Tk()
ventana.title("Hola Mundo") #Apps title
ventana.geometry("400x200") #This define the apps dimension


lbl = Label(ventana, text="Este es un label")
lbl.pack()

btn = Button(ventana, text="Presionar")
btn.pack()

ventana.mainloop()