Lines Matching full:indent
225 text.bind("<<newline-and-indent>>",self.newline_and_indent_event)
226 text.bind("<<smart-indent>>",self.smart_indent_event)
227 text.bind("<<indent-region>>",self.indent_region_event)
265 # usetabs true -> literal tab characters are used by indent and
269 # false -> tab characters are converted to spaces by indent
274 usespaces = idleConf.GetOption('main', 'Indent', 'use-spaces', type='bool')
284 # indentwidth is the number of screen characters per indent level.
825 self.indentwidth = idleConf.GetOption('main', 'Indent','num-spaces',
1245 # do indent-region
1247 # indent one level
1293 indent = line[:i]
1338 # after the first line of a string; do not indent at all
1342 # just mimic the current indent
1343 text.insert("insert", indent)
1346 # last open bracket structure; else indent one
1347 # level beyond the indent of the line with the
1352 # mimic the current indent; else if initial line
1353 # has a start on an assignment stmt, indent to
1357 text.insert("insert", indent)
1364 # This line starts a brand new stmt; indent relative to
1367 indent = y.get_base_indent_string()
1368 text.insert("insert", indent)
1371 elif indent and y.is_block_closer():
1461 # User must change indent width manually after using tabs.
1475 "Indent width",
1476 "New indent width (2-16)\n(Always use 8 when using tabs)",
1605 INDENT=_tokenize.INDENT,
1612 elif type == INDENT and self.blkopenline: