Lines Matching refs:last
69 last = text.index("sel.last")
71 last = None
73 last = last or first
74 self.show_hit(first, last)
158 first = last = None
171 last = "%d.%d" % (line, j)
173 text.mark_set("insert", last)
176 if first != last:
177 text.delete(first, last)
183 if first and last:
184 self.show_hit(first, last)
202 last = "%d.%d" % (line, j)
203 self.show_hit(first, last)
215 last = text.index("sel.last")
219 first = last = pos = text.index("insert")
231 text.delete(first, last)
239 def show_hit(self, first, last):
240 """Highlight text between first and last indices.
253 text.tag_add("sel", first, last)
255 if first == last:
258 text.tag_add("hit", first, last)