class_docstr: A base class for sidebars using Text.
code: def __init__(self, editwin):
      self.editwin = editwin
      self.parent = editwin.text_frame
      self.text = editwin.text
  
      self.is_shown = False
  
      self.main_widget = self.init_widgets()
  
      self.bind_events()
  
      self.update_font()
      self.update_colors()
  
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 1 to create a new BaseSideBar object  with example: obj = BaseSideBar(editwin)