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 setUp(self): self.model = SurveyModel() self.num_general_proposals = 4 self.num_sequence_proposals = 1