import tkinter as tk
def change_bg():
root.config(bg="lightblue") # Change background color
root = tk.Tk()
root.geometry("200x100")
btn = tk.Button(root, text="Change Background", command=change_bg)
btn.pack(pady=20)
root.mainloop()
import tkinter as tk
def change_bg():
root.config(bg="lightblue") # Change background color
root = tk.Tk()
root.geometry("200x100")
btn = tk.Button(root, text="Change Background", command=change_bg)
btn.pack(pady=20)
root.mainloop()
We offer professional development courses for students, job seekers, and kids. Start your journey from basics to advanced with practical tr...