Home | History | Annotate | Download | only in idlelib

Lines Matching refs:INSERT

209         text.bind("<<center-insert>>", self.center_insert_event)
374 self.text.compare("iomark", "<=", "insert lineend") and \
375 self.text.compare("insert linestart", "<=", "iomark"):
379 insert linestart", "insert lineend")
385 lineat = int(self.text.index("insert").split('.')[1])
388 dest = "insert linestart+"+str(insertpt)+"c"
394 self.text.mark_set("my_anchor", "insert") # there was no previous selection
396 if self.text.compare(self.text.index("sel.first"), "<", self.text.index("insert")):
406 self.text.mark_set("insert", dest)
407 self.text.see("insert")
413 # Insert some padding to avoid obscuring some of the statusbar
425 line, column = self.text.index(INSERT).split('.')
453 # Insert the application menu
474 self.text.mark_set("insert", "@%d,%d" % (event.x, event.y))
571 self.text.see("insert")
576 self.text.mark_set("insert", "1.0")
577 self.text.see("insert")
582 self.text.see("insert")
599 self_text_mark_set("insert", edges_table[edge_index])
641 text.mark_set("insert", "%d.0" % lineno)
642 text.see("insert")
660 # XXX Ought to insert current file's directory in front of path
697 self.text.mark_set("insert", "%d.0" % lineno)
699 self.text.tag_add("sel", "insert", "insert +1l")
873 rf_list.insert(0, new_file)
951 def center(self, mark="insert"):
969 def getlineno(self, mark="insert"):
1198 text.mark_set("insert", first)
1202 chars = text.get("insert linestart", "insert")
1204 if text.compare("insert", ">", "1.0"):
1206 text.delete("insert-1c")
1212 text.delete("insert-1c")
1235 text.delete("insert-%dc" % ncharsdeleted, "insert")
1237 text.insert("insert", ' ' * (want - have))
1256 text.mark_set("insert", first)
1257 prefix = text.get("insert linestart", "insert")
1270 text.insert("insert", pad)
1271 text.see("insert")
1283 text.mark_set("insert", first)
1284 line = text.get("insert linestart", "insert")
1291 text.insert("insert linestart", '\n')
1294 # strip whitespace before insert point unless it's in the prompt
1301 text.delete("insert - %d chars" % i, "insert")
1302 # strip whitespace after insert point
1303 while text.get("insert") in " \t":
1304 text.delete("insert")
1306 text.insert("insert", '\n')
1310 lno = index2line(text.index('insert'))
1316 rawtext = text.get(startatindex, "insert")
1325 r = text.tag_prevrange("console", "insert")
1330 rawtext = text.get(startatindex, "insert")
1343 text.insert("insert", indent)
1357 text.insert("insert", indent)
1368 text.insert("insert", indent)
1375 text.see("insert")
1492 head = text.index("insert linestart")
1493 tail = text.index("insert lineend +1c")
1505 text.mark_set("insert", head)
1508 text.insert(head, newchars)
1510 text.tag_add("sel", head, "insert")
1521 # Delete from beginning of line to insert point, then reinsert
1527 if text.compare("insert linestart", "!=", "insert"):
1528 text.delete("insert linestart", "insert")
1530 text.insert("insert", self._make_blanks(column))