2014-04-21 31 views

回答

3

可以使用tkinter.Scale.set方法將比例設置爲任意值。

下面是一個簡單的腳本來證明:

from tkinter import Tk, Scale 

root = Tk() 

w = Scale(root, from_=0, to=200) 
w.pack() 
w.set(100) # Set the initial value to 100 

root.mainloop() 

實施例:

enter image description here

相關問題