code: def select_by_widget(self, widget):
          
          for a, li, holder in self._tabs.values():
              if holder.children['content'] == widget:
                  self._on_tab_pressed(a, li, holder)
                  return
docs: shows a tab identified by the contained widget