X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCpuPage.py;h=501a5a209d91415df83a4ec524373bc1fbb8e902;hb=86ebaa4c17f3296c403b51ab8e922f4fa889a401;hp=8547f42a23e0a5bb25c5f2dbf6130ed72916bf53;hpb=0dc6365f51734b17c163970c644fca489b7f1efa;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 8547f42a..501a5a20 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -9,11 +9,21 @@ # Author: Lorenzo Berni # + from BWizardPage import * +import bertos_utils class BCpuPage(BWizardPage): def __init__(self): BWizardPage.__init__(self, "cpu_select.ui") self.setTitle(self.tr("Select the CPU")) + + def _populateCpuList(self): + 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