擅长:python、mysql、java
<p>您必须自己使用自定义的RGB颜色。你知道吗</p>
<p>使用<code>'bg'</code>键了解背景色。你知道吗</p>
<p>无论如何,如果要实现Tkinter框架的自定义,可以执行以下操作:</p>
<pre><code>from tkinter import *
root = Tk()
print(root['bg']) # Output: SystemButtonFace
root.configure(bg = '#FF0000') # Configuring new color RED
print(root['bg']) # Output: #FF0000
root.mainloop()
</code></pre>
<p>有关tkinter样式的更多信息,请参见本页:</p>
<p><a href="https://effbot.org/tkinterbook/tkinter-widget-styling.htm" rel="nofollow noreferrer">Widget Styling</a></p>
<p>查看Macintosh和Windows的默认系统颜色的段落。你知道吗</p>
<p>Linux可能没有系统颜色,因为它通常由黑色命令行管理。你知道吗</p>