Skip to content
UPEEC

Tkinter

Python's built-in GUI toolkit — available everywhere Python is installed.

Beginner
Comments 0
import tkinter as tk
root = tk.Tk(); root.title("LED")
tk.Button(root, text="Toggle", command=lambda: print("toggle")).pack(padx=20, pady=20)
root.mainloop()

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.