code: def _focus_tab(self, tab_idx):
          
          for i in range(self.tab_widget.count()):
              self.tab_widget.setTabEnabled(i, False)
          self.tab_widget.setTabEnabled(tab_idx, True)
          self.tab_widget.setCurrentIndex(tab_idx)
docs: Change tab focus