I dont't know why I can't get the value of the scale and why I get this error message. Can anyone help me?
from tkinter import *
Op = Tk()
def sb():
print (Voboll1)
Oboll=Label(Op, text='BOLL')
Oboll.grid(row=1,column=0)
Voboll1 = StringVar()
# Création d'un widget Scale
Oboll1= Scale(Op,from_=-0.2,to=0.2,resolution=0.01,orient=HORIZONTAL,\
length=235,width=20,tickinterval=20,variable=Voboll1,command=sb)
Oboll1.grid(row=1,column=1)
Op.mainloop()
The error message:
TypeError: sb() takes no arguments (1 given)