docs: def bind_switcher(cls):
          """
          Bind the switch checkbox to functions for switching between types of
          inputs.
          """
          def show_two_conspect():
              cls.is_twoconspect = True
  
              # search by class
              for el in cls.two_conspect_el:
                  el.style.display = "block"
  
              cls.whole_conspect_subconspect_el.style.display = "none"
  
          def hide_two_conspect():
              cls.is_twoconspect = False
  
              for el in cls.two_conspect_el:
                  el.style.display = "none"
  
              cls.whole_conspect_subconspect_el.style.display = "block"
  
          def show_or_hide_two_conspect(ev):
              val = cls.get()
  
              # check / uncheck both checkboxes
              for el in cls.switcher_els:
                  el.checked = ev.target.checked
  
              if ev.target.checked:
                  hide_two_conspect()
                  cls.set(val)
                  return
  
              show_two_conspect()
              cls.set(val)
  
          # bind both `conspect_switchers`
          for el in document.get(selector=".conspect_switcher"):
              el.bind("change", show_or_hide_two_conspect)