By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,789 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

Text() tags and delete()

P: n/a
Does Text.delete(0.0, END) delete all of the tags too? Everything says it
does not delete marks, but nothing about tags.

Thanks!

Bob
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
Jul 19 '05 #2

P: n/a
"Christopher Subich" <sp****************@block.subich.spam.com> wrote in
message news:La******************@bignews6.bellsouth.net.. .
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.


Oops. I meant to put that in the subject.
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.
That's what I thought, and that was what it looked like was happening (but
just because you can't find something doesn't mean it hasn't been taken to
the garbage :)
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.


We have all kinds. :)

Thanks, Christopher!
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.