Lines Matching full:last
41 last = text.index("sel.last")
43 last = None
45 last = last or first
46 self.show_hit(first, last)
108 first = last = None
123 last = "%d.%d" % (line, j)
125 text.mark_set("insert", last)
128 if first != last:
129 text.delete(first, last)
135 if first and last:
136 self.show_hit(first, last)
150 last = "%d.%d" % (line, j)
151 self.show_hit(first, last)
162 last = text.index("sel.last")
166 first = last = pos = text.index("insert")
178 text.delete(first, last)
186 def show_hit(self, first, last): argument
187 """Highlight text from 'first' to 'last'.
188 'first', 'last' - Text indices"""
192 text.tag_add("sel", first, last)
194 if first == last:
197 text.tag_add("hit", first, last)