Tkinter: user vs. program events
effbot at pythonware.com
effbot at pythonware.com
Wed Feb 23 17:44:26 EST 2000
Andrew Kuchling wrote:
> > why not just add a semaphore?
>
> That's what I first thought, but it doesn't work. /.../
> The solution is probably "Don't do that, then"
some further digging makes me think that this
could work:
light_var = FloatVar()
light_scale = Scale(command=adjust, variable=light_var)
to change the setting, update list_var, not the
widget itself:
light_var.set(value)
the scale implementation contains special code to
avoid calling the command callback if the variable
value changes, so this should work.
</F>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list