# Author: Lorenzo Berni <duplo@develer.com>
#
+
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["CORE_CPU"]))
+
+ def reloadData(self):
+ self._populateCpuList()
\ No newline at end of file