Text() tags and delete()
spam.csubich+block at block.subich.spam.com
Tue Jun 28 05:09:36 CEST 2005
Bob Greschke wrote:
> Does Text.delete(0.0, END) delete all of the tags too? Everything says it
> does not delete marks, but nothing about tags.
Note to everyone else: this is a TKinter question.
Tags are attached to text ranges, in the Text widget. If you delete all
of the text in the widget, all of the text ranges will go poof, so
therefore all of the tag attachments will likewise go poof.
This will not delete any tags that have been defined for the widget,
though, although why you'd want to do that is an open question.
More information about the Python-list