code: def _synchronize_controls(self):
          
  
          # whether the script is visible
          self.grid_script._widget.setVisible(self.button_script.get_value())
  
          # whether we should be able to edit it.
          if not self.combo_autoscript.get_index()==0: self.script.disable()
          else:                                        self.script.enable()
docs: Updates the gui based on button configs.