X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCpuPage.py;h=03ef2cc05242e4ad9437c587a0af7235fd6c1a7b;hb=ab481ba05aa4a74682445c0c89ab7e101e92455b;hp=8547f42a23e0a5bb25c5f2dbf6130ed72916bf53;hpb=0dc6365f51734b17c163970c644fca489b7f1efa;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 8547f42a..03ef2cc0 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): + cpus = bertos_utils.findDefinitions("cdef", self._projectInfoRetrieve("SOURCES_PATH")) + for cpu in cpus.keys(): + self.pageContent.cpuList.addItem(QListWidgetItem(cpu)) + + def reloadData(self): + self._populateCpuList() \ No newline at end of file