def populateCpuList(self): """ Fills the cpu list. """ self.pageContent.cpuList.clear() self.pageContent.cpuList.setCurrentItem(None) infos = self.project.getCpuInfos() tag_list = bertos_utils.getTagSet(infos) # Create, fill and store the dict with the tags tag_dict = {} for element in tag_list: tag_dict[element] = False self.setProjectInfo("ALL_CPU_TAGS", tag_dict) for cpu in infos: item = QListWidgetItem(cpu["CPU_NAME"]) item.setData(Qt.UserRole, qvariant_converter.convertDict(cpu)) self.pageContent.cpuList.addItem(item)
def _loadCpuStuff(self, cpu_name, cpu_frequency): self.infos["CPU_NAME"] = cpu_name cpu_info = self.getCpuInfos() for cpu in cpu_info: if cpu["CPU_NAME"] == cpu_name: self.infos["CPU_INFOS"] = cpu break tag_list = getTagSet(cpu_info) # Create, fill and store the dict with the tags tag_dict = {} for element in tag_list: tag_dict[element] = False infos = self.info("CPU_INFOS") for tag in tag_dict: if tag in infos["CPU_TAGS"] + [infos["CPU_NAME"], infos["TOOLCHAIN"]]: tag_dict[tag] = True else: tag_dict[tag] = False self.infos["ALL_CPU_TAGS"] = tag_dict self.infos["SELECTED_FREQ"] = cpu_frequency
def _loadCpuStuff(self, cpu_name, cpu_frequency): self.infos["CPU_NAME"] = cpu_name cpu_info = self.getCpuInfos() for cpu in cpu_info: if cpu["CPU_NAME"] == cpu_name: self.infos["CPU_INFOS"] = cpu break tag_list = getTagSet(cpu_info) # Create, fill and store the dict with the tags tag_dict = {} for element in tag_list: tag_dict[element] = False infos = self.info("CPU_INFOS") for tag in tag_dict: if tag in infos["CPU_TAGS"] + [ infos["CPU_NAME"], infos["TOOLCHAIN"] ]: tag_dict[tag] = True else: tag_dict[tag] = False self.infos["ALL_CPU_TAGS"] = tag_dict self.infos["SELECTED_FREQ"] = cpu_frequency