Re: Text editing and tags...
Michael Lange <[email protected]> Wed, 12 Dec 2018 12:20:44 +0100
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Wed, 12 Dec 2018 10:32:24 +0000 Vasilis Vlachoudis <[email protected]> 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.