code: def _tab_changed(self):
          
          current = self.tab_widget.currentWidget()
          if current == self.analysisTab:
              self.btn_back.setEnabled(False)
              self.btn_next.setEnabled(True)
          elif current == self.reportingTab:
              if self._current_index == 0:
                  # Only if the user is coming from the first tab
                  self._populate_reporting_tab()
              self.reporting_options_layout.setEnabled(
                  self._multi_exposure_if is not None)
              self.btn_back.setEnabled(True)
              self.btn_next.setEnabled(True)
          else:
              self.btn_back.setEnabled(True)
              self.btn_next.setEnabled(False)
          self._current_index = current
docs: Triggered when the current tab is changed.