... I was thinking of using the line.char references was so that I could insert the new circles in the correct place in the text ...
Rather than fighting to translate character offsets to line/char offsets in order to insert the additions, why not query the entire text, perform substitutions on that and then replace (delete/insert) the entire text?
In reply to Re^3: Extracting information from a Text widget
by BrowserUk
in thread Extracting information from a Text widget
by jlnelson19
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |