MCPcopy Index your code
hub / github.com/python/cpython / _asktabwidth

Method _asktabwidth

Lib/idlelib/format.py:345–353  ·  view source on GitHub ↗

Return value for tab width.

(self)

Source from the content-addressed store, hash-verified

343 return "break"
344
345 def _asktabwidth(self):
346 "Return value for tab width."
347 return askinteger(
348 "Tab width",
349 "Columns per tab? (2-16)",
350 parent=self.editwin.text,
351 initialvalue=self.editwin.indentwidth,
352 minvalue=2,
353 maxvalue=16)
354
355
356class Indents:

Callers 2

tabify_region_eventMethod · 0.95
untabify_region_eventMethod · 0.95

Calls 1

askintegerFunction · 0.90

Tested by

no test coverage detected