这是我的代码:
import Tkinter
top = Tkinter.Tk()
top.geometry('600x600')
scale = Tkinter.Scale(top,from_=10,to=40, orient=HORIZONTAL)
scale.pack()
出现以下错误:
NameError: name 'HORIZONTAL' is not defined
我想将我的比例设置为水平,我的参考在这里,但它不起作用。
这是我的代码:
import Tkinter
top = Tkinter.Tk()
top.geometry('600x600')
scale = Tkinter.Scale(top,from_=10,to=40, orient=HORIZONTAL)
scale.pack()
出现以下错误:
NameError: name 'HORIZONTAL' is not defined
我想将我的比例设置为水平,我的参考在这里,但它不起作用。