change background color of tkinter
root.configure(background='black')
change background color of tkinter
root.configure(background='black')
how to add a background color in tkinter
#Import:
from tkinter import *
#Create Window:
new_window = Tk()
new_window.title("Hello World")
new_window.geometry("300x250")
#Adding the background color:
new_window.config(bg = "red")
#new_window tells us that we are setting up something for the new window
#.config() means that we want to configure something on the screen
#bg tells that the background needs to be changed
#"red" tells us what should the background color be ; it can also be a hex code
new_window.mainloop()
gui.configure(background="light green") in tkinter
gui.configure(background="light green")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us