08.06.14 16:55, Saimadhav Heblikar написав(ла):
I propose that Text.tag_ranges(tag) return a list of tuples (start index, end index), instead of a list like [start index1, endindex1, startindex2, endindex2....etc]To be more even more consistent, tag_ranges tuples should contain indexes similar to the ones returned by tag_prevrange/tag_nextrange i.e. strings instead of textindex objects. So, the above output would have been >>> text.tag_ranges('red') (('1.0', '1.2'), ('1.6', '1.8')) If there is a reason for current behavior, can you link me to it?
Tk command returns a list, not a list of pairs. _______________________________________________ Tkinter-discuss mailing list [email protected] https://mail.python.org/mailman/listinfo/tkinter-discuss
