Lines Matching full:tabwidth
222 # indentwidth is not a multiple of tabwidth,
233 # tabwidth is the display width of a literal tab character.
237 # Nobody expects this, so for now tabwidth should never be changed.
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)
1478 # XXX this isn't bound to anything -- see tabwidth comments
1481 ## if new != self.tabwidth:
1482 ## self.tabwidth = new
1490 ntabs, nspaces = divmod(n, self.tabwidth)
1514 opener, indented = IndentSearcher(self.text, self.tabwidth).run()
1516 raw, indentsmall = get_line_indent(opener, self.tabwidth)
1517 raw, indentlarge = get_line_indent(indented, self.tabwidth)
1541 def get_line_indent(line, tabwidth): argument
1545 the tabs into spaces, as done by str.expandtabs(tabwidth).
1548 return m.end(), len(m.group().expandtabs(tabwidth))
1558 def __init__(self, text, tabwidth): argument
1560 self.tabwidth = tabwidth
1587 tokenize.tabsize = self.tabwidth