in reply to Re^2: Extracting information from a Text widget
in thread Extracting information from a Text widget

... 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?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^3: Extracting information from a Text widget