xxxxxxxxxx
# use this line of code
WindowName.configure(bg="HexVaue/ColorNane")
xxxxxxxxxx
from Tkinker import *
pencere = Tk()
pencere.configure(background="black")
mainloop()
xxxxxxxxxx
root.configure(background="black")
# Or
root["bg"] = "black"
# Or more generally
<widget>.configure(background="black")
# Colors that work are those defined by the system (e.g. lots of named ones)
# or hex values, which can be of the forms #RGB, #RRGGBB, and #RRRRGGGGBBBB.
# Colors List: https://www.plus2net.com/python/tkinter-colors.php