on
laravel
- Get link
- Other Apps
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.
from tkinter import *
myWindow = Tk()
myWindow.title("Window Background")
myWindow.geometry("750x450")
myWindow.configure(bg="orange")#window color is oranage
myWindow.mainloop()
from tkinter import *
myWindow = Tk()
myWindow.title("Window Background")
myWindow.geometry("750x450")
myWindow.configure(bg="blue")#Window Background color is blue
myWindow.mainloop()
Comments
Post a Comment
If you any doubt of any topic then you can comment me.