Tkinter Canvas Change the background color
When creating a canvas using the Canvas( ) method, you can add the bg parameter to set the background color of the canvas.
Example#1
Change the background of the canvas to yellow.
from tkinter import *
tk = Tk()
tk.title("apidemos.com")
canvas = Canvas(tk, width=640, height=240, bg='yellow')
canvas.pack()
tk.mainloop()
Output: