Hi,

On Wed, 12 Dec 2018 10:32:24 +0000
Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote:

(...)
> What it is the advantage of using the
> txt.tk.call('tk::TextInsert', txt._w, event.char)# borrowed from
> text.tcl instead of txt.insert()?
> 

actually I do not know if there is any difference, I just supposed there
might be. The apparently more low-level tk::TextInsert is exactly what
the Text widget does on KeyPress events, so when I set up that example I
just copied it. Of course that snippet was just a "quick shot", for all I
know insert() may or may not do exactly the same :-)

Best regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

A father doesn't destroy his children.
                -- Lt. Carolyn Palamas, "Who Mourns for Adonais?",
                   stardate 3468.1.
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to