target practice tkinter assignment code example
Example 1: basic tkinter gui
import tkinter as tk
root = tk.Tk()
root.title("my title")
root.geometry('200x150')
root.configure(background='black')
# enter widgets here
root.mainloop()
Example 2: tkinter python tutorial
button = tk.Button(
text="Click me!",
width=25,
height=5,
bg="blue",
fg="yellow",
)