Searched refs:tabwidth (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Lib/idlelib/idle_test/ |
D | test_editor.py | 37 for tabwidth in [1, 2, 4, 6, 8]: 39 with self.subTest(line=line, tabwidth=tabwidth): 41 editor.get_line_indent(line, tabwidth=tabwidth), 66 editor.get_line_indent(line, tabwidth=4), 91 editor.get_line_indent(line, tabwidth=8), 111 cls.window.tabwidth = 2
|
D | test_parenmatch.py | 19 self.tabwidth = 8
|
D | test_pyparse.py | 28 cls.parser = pyparse.Parser(indentwidth=4, tabwidth=4) 36 self.assertEqual(self.parser.tabwidth, 4)
|
D | test_hyperparser.py | 13 self.tabwidth = 8
|
D | test_calltip.py | 278 self.tabwidth = 8
|
D | test_autocomplete.py | 21 self.tabwidth = 8
|
D | test_format.py | 385 self.tabwidth = 4
|
/third_party/python/Lib/idlelib/ |
D | format.py | 202 def get_line_indent(line, tabwidth): argument 209 return m.end(), len(m.group().expandtabs(tabwidth)) 270 raw, effective = get_line_indent(line, self.editwin.tabwidth) 282 raw, effective = get_line_indent(line, self.editwin.tabwidth) 322 tabwidth = self._asktabwidth() 323 if tabwidth is None: 328 raw, effective = get_line_indent(line, tabwidth) 329 ntabs, nspaces = divmod(effective, tabwidth) 337 tabwidth = self._asktabwidth() 338 if tabwidth is None: [all …]
|
D | editor.py | 238 self.tabwidth = 8 # must remain 8 until Tk is fixed. 242 self.indentwidth = self.tabwidth 1270 if self.indentwidth != self.tabwidth: 1272 self.set_tk_tabwidth(self.tabwidth) 1297 tabwidth = self.tabwidth 1298 have = len(chars.expandtabs(tabwidth)) 1306 have = len(chars.expandtabs(tabwidth)) 1334 raw, effective = get_line_indent(prefix, self.tabwidth) 1343 effective = len(prefix.expandtabs(self.tabwidth)) 1400 y = pyparse.Parser(self.indentwidth, self.tabwidth) [all …]
|
D | squeezer.py | 36 tabwidth = 8 # Currently always true in Shell. 62 current_column += tabwidth - (current_column % tabwidth) 68 current_column = tabwidth
|
D | pyparse.py | 127 def __init__(self, indentwidth, tabwidth): argument 129 self.tabwidth = tabwidth 491 return len(code[i:j].expandtabs(self.tabwidth)) + extra 558 self.tabwidth)) + 1
|
D | hyperparser.py | 32 parser = pyparse.Parser(editwin.indentwidth, editwin.tabwidth)
|
D | ChangeLog | 759 tabwidth magical usetabs disabling, new files are still created with tabs 763 PythonWin, though, since Windows users typically set tabwidth to 4; Mark 903 self.tabwidth)) + 1 925 Removed "New tabwidth" menu binding. 929 commands, and IDLE can't let them change tabwidth from the Tk default
|