[Tkinter-discuss] Text editing and tags...

Michael Lange klappnase at web.de
Wed Dec 12 06:20:44 EST 2018


Hi,

On Wed, 12 Dec 2018 10:32:24 +0000
Vasilis Vlachoudis <Vasilis.Vlachoudis at 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.


More information about the Tkinter-discuss mailing list