X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2FBCpuPage.py;h=501a5a209d91415df83a4ec524373bc1fbb8e902;hb=86ebaa4c17f3296c403b51ab8e922f4fa889a401;hp=97479027a1bbb6af62ce720f865c9d3c580fcbfb;hpb=7a132bfa3128cc7f34a7351a15d0e99211cf1c64;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 97479027..501a5a20 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -18,10 +18,12 @@ class BCpuPage(BWizardPage): def __init__(self): BWizardPage.__init__(self, "cpu_select.ui") self.setTitle(self.tr("Select the CPU")) - #self._populateCpuList() def _populateCpuList(self): - cpus = bertos_utils.findDefinitions("cdef", self._projectInfoRetrieve("SOURCES_PATH")) - for cpu in cpus.keys(): - self.pageContent.cpuList.addItem(QListWidgetItem(cpu)) + infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH")) + for cpu in infos: + self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CPU_NAME"])) + + def reloadData(self): + self._populateCpuList() \ No newline at end of file