hello guys i am working with a code that i cant understand:
current_value = tk.DoubleVar()
def get_current_value():
return '{: .2f}'.format(current_value.get())
def brightness_changed(event):
pct.set_brightness(get_current_value())
brightness = ttk.Scale(RHS,from_=0,to=100,orient='horizontal',
command=brightness_changed,variable=current_value)
well, the last line is ok i made it myself, but the other is unknow for me, could you pleases simply tell me what is going on here?