Background window change of tkinter python window

BACKGROUND WINDOW CHANGE 

OF TKINTER PYTHON WINDOW



In this post. we will know that how do to change the background color of python Tkinter program window. Given two example in this post for change the background color of window. First example for Orange background color second example for Blue background color.

Example 1

CODE 

from tkinter import *
myWindow = Tk()
myWindow.title("Window Background")
myWindow.geometry("750x450")
myWindow.configure(bg="orange")#window color is oranage
myWindow.mainloop()

OUTPUT

Orange background

Example 2


CODE

from tkinter import *
myWindow = Tk()
myWindow.title("Window Background")
myWindow.geometry("750x450")
myWindow.configure(bg="blue")#Window Background color is blue
myWindow.mainloop()

OUTPUT

Blue background


Comments