Thank you for your replies. I understand there are better ways to handle
'normal' UI behavior, but I was curious about the trace feature and wanted to
understand how it worked. I may not actually need it in my project, but I
wanted to see what my options were.
Thanks again.
C Martin wrote:
> What am I doing wrong in this code? The callback doesn't work from the Entry
> widget.
>
> ##start code
> import Tkinter
>
> tk = Tkinter.Tk()
> var = Tkinter.StringVar()
> print var._name
>
> def cb(name, index, mode):
> print "callback called with name=%r, index=%r, mod
C Martin wrote:
> What am I doing wrong in this code? The callback doesn't work from the Entry
> widget.
>
> ##start code
> import Tkinter
>
> tk = Tkinter.Tk()
> var = Tkinter.StringVar()
> print var._name
>
> def cb(name, index, mode):
> print "callback called with name=%r, index=%r, mod
What am I doing wrong in this code? The callback doesn't work from the Entry
widget.
##start code
import Tkinter
tk = Tkinter.Tk()
var = Tkinter.StringVar()
print var._name
def cb(name, index, mode):
print "callback called with name=%r, index=%r, mode=%r" % (name, index, mode)
varValue =