Add library exercises

This commit is contained in:
2024-01-19 21:34:36 +01:00
parent 658f94c62b
commit 700c489428
4 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env python3
"""
Librería tkinter - grid
"""
import tkinter as tk
root = tk.Tk()
root.title("Mi primera aplicación gráfica")
label1 = tk.Label(root, text="Hola mundo!", bg="red", fg="white")
label2 = tk.Label(root, text="Segundo Hola mundo!", bg="blue", fg="white")
label3 = tk.Label(root, text="Ola k ase", bg="green", fg="white")
label1.grid(row=0, column=0)
label2.grid(row=0, column=1)
label3.grid(row=1, column=0, columnspan=2)
root.mainloop()