如何在关闭状态下更改开关的拇指颜色

问题描述

我正在使用默认开关形式,我需要在关闭状态下更改开关的拇指颜色。以下是我使用的代码和样式,“打开”状态下的拇指颜色已更改。如何在关闭状态下更改拇指的颜色?

import tkinter as tk


def move_polygon(i=0):
    canvas.move(polygon,5,0)
    if i < 60:
        canvas.after(50,move_polygon,i+1)


root = tk.Tk()
canvas = tk.Canvas(root,width=500,height=400)
canvas.pack()

polygon = canvas.create_polygon(10,10,60,50,35)
move_polygon()

root.mainloop()

enter image description here

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)