X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCpuPage.py;h=97479027a1bbb6af62ce720f865c9d3c580fcbfb;hb=7a132bfa3128cc7f34a7351a15d0e99211cf1c64;hp=8547f42a23e0a5bb25c5f2dbf6130ed72916bf53;hpb=706eb0793218f6fba9a1e8e9c6d4952bc3d3ef2c;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 8547f42a..97479027 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -9,11 +9,19 @@ # 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")) + #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)) \ No newline at end of file