如何设置默认背景色tkinter [英] How to set default background colour tkinter

查看:504
本文介绍了如何设置默认背景色tkinter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道默认背景的颜色代码吗?我似乎找不到任何地方.在我的程序中,我更改了背景颜色,以后需要将其更改回默认颜色,但是我找不到颜色代码.

Does anyone know the colour code for the default background? I cant seem to find this anywhere. In my program I changed the background colour and need to change it back to the default colour later on but I am unable to find the colour code.

感谢您的帮助.谢谢.

推荐答案

尝试一下:

root.configure(background='SystemButtonFace')

这篇关于如何设置默认背景色tkinter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆