class_docstr: Sidebar for the PyShell window, for prompts etc.
code: def bind_events(self):
      super().bind_events()
  
      self.main_widget.bind(
          # AquaTk defines <2> as the right button, not <3>.
          "<Button-2>" if macosx.isAquaTk() else "<Button-3>",
          self.context_menu_event,
      )
  
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 3 for calling the ShellSidebar obj's underlying member method code with example usage: obj.bind_events() without return types