class_docstr: A base class for sidebars using Text.
code: def hide_sidebar(self):
      if self.is_shown:
          self.main_widget.grid_forget()
          self.is_shown = False
  
imports: import contextlib
  import functools
  import itertools
  import tkinter
  from tkinter.font import Font
  from idlelib.config import idleConf
  from idlelib.delegator import Delegator
  from idlelib import macosx
label_desc: Use image node_id 7 for calling the BaseSideBar obj's underlying member method code with example usage: obj.hide_sidebar() without return types