小编atl*_*ist的帖子

我可以更改Tkinter中的标题栏吗?

我正在使用Tkinter作为我的程序的GUI,但正如我所见,许多程序没有像Tkinter那样的标准外观.标准外观我的意思是标准标题栏,边框等.

例如,Tkinter的标题栏:

http://pokit.org/get/img/1a343ad92cd8c8f19ce3ca9c27afecba.jpg

vs GitHub的标题栏:

http://pokit.org/get/img/cf5cef0eeae5dcdc02f450733fd87508.jpg

看看他们如何拥有自己的自定义退出,调整大小和最小化按钮?是否有可能使用Tkinter实现这种外观?

提前致谢!:)

python tkinter

3
推荐指数
3
解决办法
8279
查看次数

如何更改使用 Tkinter 完成的文本框的背景颜色和文本颜色?

如何在 python 中更改使用 Tkinter 完成的文本框的背景颜色?我使用了下面的代码,但我不明白为什么它不起作用

from Tkinter import *

def onclick():
   pass

root = Tk()
text = Text(root)
text.pack()

text.tag_add("here", "1.0", "1.4")
text.tag_add("start", "1.8", "1.13")
text.tag_config("here", background="black", foreground="green")
root.mainloop()
Run Code Online (Sandbox Code Playgroud)

python tkinter background-color

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×2

tkinter ×2

background-color ×1