0

I have a script where text is inserted into a scrolledText widget, using Pmw megawidgets. A tag is assigned to the text, and when you click on it, the text is hidden, that is, it changes color to the background color. To unhide it you click it again.

What I want to do, however, is somehow assign a separate tag to each word in the text in an effective way, so that when you click on a word, only that word is hidden and not the entire text. Does anyone know if there is a way to assign a tag to parts of the text by highlighting it, at runtime?
If that isn't possible, I would settle for any method that lets me select the words I want to hide and assign separate tags without doing it 'manually', which is a lot of hassle if the text is long.
Advice would be much appreciated.

3
Contributors
5
Replies
7
Views
5 Years
Discussion Span
Last Post by vegaseat
0

A question to Tony:
How did you get the correct address of that post?
I haven't been able to figure that out since Dani changed her format.

0

@vegaseat: You mean to get the address of the post? You copy it from the underlined time of the post with right click - copy link address.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.