newbie Tkinter Text widget question
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Sun Nov 4 03:30:41 EST 2001
>>>>> "GK" == Greg Krohn <volucris at hotmail.com> 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:
http://www.pythonware.com/library/an-introduction-to-tkinter.htm
Its an extremely useful guide. Specifically, look at
The Text Widget->Methods->Methods for tags.
prabhu
More information about the Python-list
mailing list