Lines Matching refs:index2
83 def delete(self, index1, index2=None): argument
84 self.addcmd(DeleteCommand(index1, index2))
166 def __init__(self, index1, index2, chars, tags=None): argument
170 self.index2 = index2
177 t = (self.index1, self.index2, self.chars, self.tags)
220 self.index2 = text.index("%s+%dc" % (self.index1, len(self.chars)))
233 text.delete(self.index1, self.index2)
241 if self.index2 != cmd.index1:
250 self.index2 = cmd.index2
268 def __init__(self, index1, index2=None): argument
269 Command.__init__(self, index1, index2, None, None)
274 if self.index2:
275 self.index2 = text.index(self.index2)
277 self.index2 = text.index(self.index1 + " +1c")
278 if text.compare(self.index2, ">", "end-1c"):
280 self.index2 = text.index("end-1c")
281 self.chars = text.get(self.index1, self.index2)
282 text.delete(self.index1, self.index2)
288 text.delete(self.index1, self.index2)