def set_from(self, project, output): self.project = project self.output = output self.report = Reports(project, output) self.cboTime.clear() if project and self.output: for time_index in range(0, self.output.num_periods): self.cboTime.addItem(self.output.get_time_string(time_index)) self.rbnNodes.setChecked(True) self.rbnNodes_Clicked()
def set_from(self, project, output): self.project = project self.output = output self.report = Reports(project, output) self.cboTime.clear() if self.project and self.output: for time_index in range(0, self.output.num_periods): #if self.???: TODO: give choice between elapsed hours and date self.cboTime.addItem(self.output.get_time_string(time_index)) #else: # self.cboTime.addItem(self.output.get_date_string(time_index)) self.rbnNodes.setChecked(True) self.rbnNodes_Clicked()