Lines Matching refs:index1
83 def delete(self, index1, index2=None): argument
84 self.addcmd(DeleteCommand(index1, index2))
166 def __init__(self, index1, index2, chars, tags=None): argument
169 self.index1 = index1
177 t = (self.index1, self.index2, self.chars, self.tags)
210 def __init__(self, index1, chars, tags=None): argument
211 Command.__init__(self, index1, None, chars, tags)
215 self.index1 = text.index(self.index1)
216 if text.compare(self.index1, ">", "end-1c"):
218 self.index1 = text.index("end-1c")
219 text.insert(self.index1, self.chars, self.tags)
220 self.index2 = text.index("%s+%dc" % (self.index1, len(self.chars)))
225 text.mark_set('insert', self.index1)
226 text.insert(self.index1, self.chars, self.tags)
232 text.mark_set('insert', self.index1)
233 text.delete(self.index1, self.index2)
241 if self.index2 != cmd.index1:
268 def __init__(self, index1, index2=None): argument
269 Command.__init__(self, index1, index2, None, None)
273 self.index1 = text.index(self.index1)
277 self.index2 = text.index(self.index1 + " +1c")
281 self.chars = text.get(self.index1, self.index2)
282 text.delete(self.index1, self.index2)
287 text.mark_set('insert', self.index1)
288 text.delete(self.index1, self.index2)
294 text.mark_set('insert', self.index1)
295 text.insert(self.index1, self.chars)