小编Mor*_*lly的帖子

我可以在Tkinter中使用rgb吗?

我可以在tkinter中使用rbg代替十六进制吗?如果是这样,我该怎么办?我打算使用此功能使某种颜色从一种颜色过渡到另一种颜色,并且我计划进行for循环以在几秒钟内将其从1更改为255。

from tkinter import *

root = Tk()
root.configure(background="can i use rgb instead of hex here?")
root.mainloop()
Run Code Online (Sandbox Code Playgroud)

python tkinter colors

0
推荐指数
1
解决办法
6445
查看次数

标签 统计

colors ×1

python ×1

tkinter ×1