def __init__(self, name): """Initialize the class. Parameters ---------- name : str Tab name for the configuration view. """ BaseController.__init__(self, name) self.model = ScienceModel() self.widget = ScienceWidget(name) self.extra_props = None self.extra_props_dir = None self.widget.create_tabs(self.model.general_params) self.widget.set_information(self.model.general_params) self.widget.create_tabs(self.model.sequence_params) self.widget.set_information(self.model.sequence_params) for i in range(self.widget.count()): tab = self.widget.widget(i) tab.checkProperty.connect(self.check_property) tab.getProperty.connect(self.get_property) tab.saveConfiguration.connect(self.save_configuration)
def __init__(self, name): """Initialize the class. Parameters ---------- name : str The tab name for the configuration view. """ BaseController.__init__(self, name) self.model = DowntimeModel() self.widget = DowntimeWidget(name) for key, value in self.model.params.items(): self.widget.set_information(key, value) self.widget.checkProperty.connect(self.check_property) self.widget.getProperty.connect(self.get_property) self.widget.saveConfiguration.connect(self.save_configuration)
def __init__(self, name): """Initialize the class. Parameters ---------- name : str The tab name for the configuration view. """ BaseController.__init__(self, name) self.model = SurveyModel() self.widget = SurveyWidget(name, self.model.proposals) self.widget.set_information(self.model.params) self.widget.checkProperty.connect(self.check_property) self.widget.getProperty.connect(self.get_property) self.widget.saveConfiguration.connect(self.save_configuration)
def __init__(self, name): """Initialize the class. Parameters ---------- name : str The tab name for the configuration view. """ BaseController.__init__(self, name) self.model = SurveyModel() self.widget = SurveyWidget(name, self.model.proposals) self.widget.set_information(self.model.params) self.widget.checkProperty.connect(self.check_property) self.widget.getProperty.connect(self.get_property) self.widget.saveConfiguration.connect(self.save_configuration)
def __init__(self, name): """Initialize the class. Parameters ---------- name : str The tab name for the configuration view. """ BaseController.__init__(self, name) self.model = SchedulerDriverModel() self.widget = SchedulerDriverWidget(name) for key, value in self.model.params.items(): self.widget.set_information(key, value) self.widget.checkProperty.connect(self.check_property) self.widget.getProperty.connect(self.get_property) self.widget.saveConfiguration.connect(self.save_configuration)
def __init__(self, name): """Initialize the class. Parameters ---------- name : str Tab name for the configuration view. """ BaseController.__init__(self, name) self.model = ObservatoryModel() self.widget = ObservatoryWidget(name) self.widget.create_tabs(self.model.params) self.widget.set_information(self.model.params) for i in xrange(self.widget.count()): tab = self.widget.widget(i) tab.checkProperty.connect(self.check_property) tab.getProperty.connect(self.get_property) tab.saveConfiguration.connect(self.save_configuration)
def __init__(self, name): """Initialize the class. Parameters ---------- name : str Tab name for the configuration view. """ BaseController.__init__(self, name) self.model = ObservatoryModel() self.widget = ObservatoryWidget(name) self.widget.create_tabs(self.model.params) self.widget.set_information(self.model.params) for i in range(self.widget.count()): tab = self.widget.widget(i) tab.checkProperty.connect(self.check_property) tab.getProperty.connect(self.get_property) tab.saveConfiguration.connect(self.save_configuration)