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

Method set_indentation_params

Lib/idlelib/editor.py:1289–1296  ·  view source on GitHub ↗
(self, is_py_src, guess=True)

Source from the content-addressed store, hash-verified

1287### begin autoindent code ### (configuration was moved to beginning of class)
1288
1289 def set_indentation_params(self, is_py_src, guess=True):
1290 if is_py_src and guess:
1291 i = self.guess_indent()
1292 if 2 <= i <= 8:
1293 self.indentwidth = i
1294 if self.indentwidth != self.tabwidth:
1295 self.usetabs = False
1296 self.set_tk_tabwidth(self.tabwidth)
1297
1298 def smart_backspace_event(self, event):
1299 text = self.text

Callers 1

__init__Method · 0.95

Calls 2

guess_indentMethod · 0.95
set_tk_tabwidthMethod · 0.95

Tested by

no test coverage detected