Default window colour Tkinter and hex colour codes

前端 未结 7 1252
无人共我
无人共我 2021-02-07 12:52

I would like to know the default window colour in Tkinter when you simply create a window:

root = Tk()

If there is one, it is possible to set w

7条回答
  •  不思量自难忘°
    2021-02-07 13:24

    I was trying to set a button's color to the system default. This is the best solution I've come across:

    root.configure(background='SystemButtonFace')
    

    Source: How to set default background colour tkinter

提交回复
热议问题