Home
last modified time | relevance | path

Searched refs:tabwidth (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Lib/idlelib/idle_test/
Dtest_editor.py37 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
Dtest_parenmatch.py19 self.tabwidth = 8
Dtest_pyparse.py28 cls.parser = pyparse.Parser(indentwidth=4, tabwidth=4)
36 self.assertEqual(self.parser.tabwidth, 4)
Dtest_hyperparser.py13 self.tabwidth = 8
Dtest_calltip.py278 self.tabwidth = 8
Dtest_autocomplete.py21 self.tabwidth = 8
Dtest_format.py385 self.tabwidth = 4
/third_party/python/Lib/idlelib/
Dformat.py202 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 …]
Deditor.py238 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 …]
Dsqueezer.py36 tabwidth = 8 # Currently always true in Shell.
62 current_column += tabwidth - (current_column % tabwidth)
68 current_column = tabwidth
Dpyparse.py127 def __init__(self, indentwidth, tabwidth): argument
129 self.tabwidth = tabwidth
491 return len(code[i:j].expandtabs(self.tabwidth)) + extra
558 self.tabwidth)) + 1
Dhyperparser.py32 parser = pyparse.Parser(editwin.indentwidth, editwin.tabwidth)
DChangeLog759 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