Tkinter <<Modified>> and bindtags ordering

Rob Wolfe rw at smsnet.pl
Tue Apr 3 03:16:40 EDT 2007


bytecolor wrote:

[...]

> changing = False
> root = tk.Tk()
> t = tk.Text(master=root)
> t.pack()
> t.focus_set()
> t.tk.call(t._w, 'edit', 'modified', 0)

What about instead of:

> t.bind('<<Modified>>', text_changed)

this event:

   t.bind('<KeyRelease>', text_changed)

> root.mainloop()

--
HTH,
Rob




More information about the Python-list mailing list