(self, is_py_src, guess=True)
| 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 |
no test coverage detected