Tkinter 主题 Equilux 垂直滑块问题

时间:2021-05-25 20:43:59

标签: tkinter ttk

当我应用 ttkthemes 中名为“equilux”的主题样式时,我的垂直滑块看起来很奇怪。水平看起来不错。如果有人看到了解决方案,我想知道。我已经看过了,但没有找到。我也查看代码并没有发现任何异常。enter image description here

from tkinter import *
import tkinter.ttk as ttk
from  ttkthemes import ThemedStyle
root =Tk()
root.geometry("800x600")
root.configure(background = 'grey14')
root.resizable(1,1)
style =ThemedStyle(root)
style.set_theme('equilux') 


# Create Horizontal Slider
Horz_slider =ttk.Scale(root, from_=0, to=100, orient=HORIZONTAL, value=0, length=360)
Horz_slider.grid(row=2,column = 1)

# Create Vertical Slider
Vert_slider = ttk.Scale(root, from_=0, to=100, orient=VERTICAL, value=0, length=360)
Vert_slider.grid(row=2,column = 3)


root.mainloop()

0 个答案:

没有答案