class_docstr: Sidebar for the PyShell window, for prompts etc.
code: def init_widgets(self):
      self.canvas = tk.Canvas(
          self.parent,
          width=30,
          borderwidth=0,
          highlightthickness=0,
          takefocus=False,
      )
      self.update_sidebar()
      self.grid()
      return self.canvas
  
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 2 for calling the ShellSidebar obj's underlying member method code with example usage: obj.init_widgets() and returns: self