Home | History | Annotate | Download | only in idlelib

Lines Matching refs:tabwidth

267         #                  indentwidth is not a multiple of tabwidth,
277 # tabwidth is the display width of a literal tab character.
281 # Nobody expects this, so for now tabwidth should never be changed.
282 self.tabwidth = 8 # must remain 8 until Tk is fixed.
286 self.indentwidth = self.tabwidth
1180 # indentwidth != tabwidth set usetabs false.
1189 if self.indentwidth != self.tabwidth:
1191 self.set_tabwidth(self.tabwidth)
1216 tabwidth = self.tabwidth
1217 have = len(chars.expandtabs(tabwidth))
1231 have = len(chars.expandtabs(tabwidth))
1258 raw, effective = classifyws(prefix, self.tabwidth)
1267 tabwidth))
1311 y = PyParse.Parser(self.indentwidth, self.tabwidth)
1394 raw, effective = classifyws(line, self.tabwidth)
1405 raw, effective = classifyws(line, self.tabwidth)
1433 tabwidth = self._asktabwidth()
1434 if tabwidth is None: return
1438 raw, effective = classifyws(line, tabwidth)
1439 ntabs, nspaces = divmod(effective, tabwidth)
1445 tabwidth = self._asktabwidth()
1446 if tabwidth is None: return
1448 lines[pos] = lines[pos].expandtabs(tabwidth)
1465 # XXX this isn't bound to anything -- see tabwidth comments
1468 ## if new != self.tabwidth:
1469 ## self.tabwidth = new
1516 ntabs, nspaces = divmod(n, self.tabwidth)
1548 opener, indented = IndentSearcher(self.text, self.tabwidth).run()
1550 raw, indentsmall = classifyws(opener, self.tabwidth)
1551 raw, indentlarge = classifyws(indented, self.tabwidth)
1563 # tabs to width tabwidth)
1565 def classifyws(s, tabwidth):
1573 effective = (effective // tabwidth + 1) * tabwidth
1589 def __init__(self, text, tabwidth):
1591 self.tabwidth = tabwidth
1618 _tokenize.tabsize = self.tabwidth