iT邦幫忙

0

Python Tkinter Scale Slider 顏色設定問題

https://ithelp.ithome.com.tw/upload/images/20200109/20123386CegdWZ4GVL.jpg

如上圖, 想要設定箭頭處Slider的顏色

但用了background參數設定顏色會和底色一起變色

像是:
https://ithelp.ithome.com.tw/upload/images/20200109/20123386V8j3HvUWNt.jpg

若直接設定和背景顏色一樣Slider會不太容易辨識
像用activebackground就可以單獨設定Slider的顏色
是否有方法可以Slider和底色分開設定顏色嗎?

s2 = Scale(control_frame, from_=0, to=100, tickinterval=100, sliderrelief='flat', orient="horizontal", highlightthickness=0, background='black', fg='grey', troughcolor='#73B5FA', activebackground='#1065BF')

s2.place(x=70, y=600, anchor='nw', width = 280, height = 50)
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答