newbie Tkinter Text widget question

Greg Krohn volucris at hotmail.com
Sun Nov 4 03:16:14 EST 2001


"Aaron Sterling" <dhaaron at hotpop.com> wrote in message
news:1103_1004849705 at t4q4p0...
> hello exhalted python hackers,
>
>     I understand that the Text widget has a built in tag called 'sel' or
SEL.  The question is how do I find the start and end
> of this (or any other) tags range.  The Text class does not seem to define
a method to do this.
>
> humbly awaiting an answer,
> aaron
>

Yes, in fact, it does. It's tag_ranges as in Text.tag_ranges(SEL). It
returns a tuple like ('row.col', 'row.col'). Sorry I'm not 'exhalted', but I
hope this helps.

greg





More information about the Python-list mailing list