def build_config(self, config):
     """
     Set the default values for the config sections.
     """
     # Calculate computed settings on load
     config.add_callback(self.computeSettings)
     config.setdefaults('Computed Settings', maslowSettings.getDefaultValueSection('Computed Settings'))
     config.setdefaults('Maslow Settings', maslowSettings.getDefaultValueSection('Maslow Settings'))
     config.setdefaults('Advanced Settings', maslowSettings.getDefaultValueSection('Advanced Settings'))
     config.setdefaults('Ground Control Settings', maslowSettings.getDefaultValueSection('Ground Control Settings'))
     config.remove_callback(self.computeSettings)
Example #2
0
 def build_config(self, config):
     """
     Set the default values for the config sections.
     """
     # Calculate computed settings on load
     config.add_callback(self.computeSettings)
     config.setdefaults('Computed Settings', maslowSettings.getDefaultValueSection('Computed Settings'))
     config.setdefaults('Maslow Settings', maslowSettings.getDefaultValueSection('Maslow Settings'))
     config.setdefaults('Advanced Settings', maslowSettings.getDefaultValueSection('Advanced Settings'))
     config.setdefaults('Ground Control Settings', maslowSettings.getDefaultValueSection('Ground Control Settings'))
     config.remove_callback(self.computeSettings)