Lines Matching refs:index1
85 def delete(self, index1, index2=None): argument
86 self.addcmd(DeleteCommand(index1, index2))
167 def __init__(self, index1, index2, chars, tags=None): argument
170 self.index1 = index1
178 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:
267 def __init__(self, index1, index2=None): argument
268 Command.__init__(self, index1, index2, None, None)
272 self.index1 = text.index(self.index1)
276 self.index2 = text.index(self.index1 + " +1c")
280 self.chars = text.get(self.index1, self.index2)
281 text.delete(self.index1, self.index2)
286 text.mark_set('insert', self.index1)
287 text.delete(self.index1, self.index2)
293 text.mark_set('insert', self.index1)
294 text.insert(self.index1, self.chars)