code: def on_scenario_directory_radio_toggled(self, flag):
          
          if flag:
              self.output_directory.setText(self.source_directory.text())
          self.output_directory_chooser.setEnabled(not flag)
docs: Autoconnect slot activated when scenario_directory_radio is checked.
  
          :param flag: Flag indicating whether the checkbox was toggled on or
              off.
          :type flag: bool