Clean the proc structure before to use.
[bertos.git] / wizard / BCpuPage.py
index 8547f42a23e0a5bb25c5f2dbf6130ed72916bf53..03ef2cc05242e4ad9437c587a0af7235fd6c1a7b 100644 (file)
@@ -9,11 +9,21 @@
 # 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):
+        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