class_docstr: Change future indents.
class_docstr_tok: ["Change","future","indents","."]
code: def toggle_tabs_event(self, event):
      editwin = self.editwin
      usetabs = editwin.usetabs
      if askyesno(
          "Toggle tabs",
          "Turn tabs "
          + ("on", "off")[usetabs]
          + "?\nIndent width "
          + ("will be", "remains at")[usetabs]
          + " 8."
          + "\n Note: a tab is always 8 columns",
          parent=editwin.text,
      ):
          editwin.usetabs = not usetabs
          # Try to prevent inconsistent indentation.
          # User must change indent width manually after using tabs.
          editwin.indentwidth = 8
      return "break"
  
imports: import re
  from tkinter.messagebox import askyesno
  from tkinter.simpledialog import askinteger
  from idlelib.config import idleConf
label_desc: Use image node_id 2 for calling the Indents obj's underlying member method code with example usage: obj.toggle_tabs_event(event) and returns: str