Lines Matching refs:line

189         text.bind("<<goto-line>>", self.goto_line_event)
208 text.bind("<<beginning-of-line>>", self.home_callback)
358 'line-numbers-default', type='bool'):
360 text.bind("<<toggle-line-numbers>>", self.toggle_line_numbers_event)
392 # In Shell on input line, go to just after prompt
395 line = self.text.get("insert linestart", "insert lineend")
396 for insertpt in range(len(line)):
397 if line[insertpt] not in (' ','\t'):
400 insertpt=len(line)
436 self.status_bar.set_label('line', 'Ln: ?', side=RIGHT)
439 self.text.bind("<<set-line-and-column>>", self.set_line_and_column)
440 self.text.event_add("<<set-line-and-column>>",
445 line, column = self.text.index(INSERT).split('.')
447 self.status_bar.set_label('line', 'Ln: %s' % line)
811 line = self.text.get('1.0', '1.0 lineend')
812 return line.startswith('#!') and 'python' in line
865 if '\n' == text.get(pos): # error at line end
889 # Next, update the line numbers widget, since its width affects
1399 # tab to the next 'stop' within or to right of line's text:
1415 Properly position the cursor on the new line based on information
1416 from the current line. This takes into account if the current line
1418 opener, contains a block closer, is a continuation line, or
1424 try: # Close undo block and expose new line in finally clause.
1428 line = text.get("insert linestart", "insert")
1431 i, n = 0, len(line)
1432 while i < n and line[i] in " \t":
1436 # line; just inject an empty line at the start.
1440 indent = line[:i]
1444 while line and line[-1] in " \t":
1445 line = line[:-1]
1454 # Insert new line.
1486 # After the first line of a string do not indent at all.
1489 # Inside a string which started before this line;
1495 # level beyond the indent of the line with the
1499 # If more than one line in this statement already, just
1500 # mimic the current indent; else if initial line
1503 # non-whitespace on initial line.
1513 # This line starts a brand new statement; indent relative to
1514 # indentation of initial line of closest preceding
1555 # Delete from beginning of line to insert point, then reinsert
1595 # "line.col" -> line, as an int
1601 def get_line_indent(line, tabwidth):
1602 """Return a line's indentation as (# chars, effective # of spaces).
1607 m = _line_indent_re.match(line)
1628 def tokeneater(self, type, token, start, end, line,
1636 self.blkopenline = line
1638 self.indentedline = line
1644 Either the indent line or both may be None.
1699 "<<goto-line>>",