newbie Tkinter Text widget question

Prabhu Ramachandran prabhu at
Sun Nov 4 09:30:41 CET 2001

>>>>> "GK" == Greg Krohn <volucris at> writes:

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

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

Aaron, just in case you aren't aware of this:

Its an extremely useful guide.  Specifically, look at 
The Text Widget->Methods->Methods for tags.


More information about the Python-list mailing list