X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2FBModulePage.py;h=8daa8d206e25c85bf14e058dcac57eed01c1d0b5;hb=6ad5c01d9a3d323e34a547283e7a534f7c3b9d15;hp=9fbcf01554620df8fbbead350be21f1548feb64c;hpb=df3bd7f742da8c015304fa21e01eb966ff76a089;p=bertos.git diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index 9fbcf015..8daa8d20 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -189,7 +189,7 @@ class BModulePage(BWizardPage): configuration = self.projectInfo("MODULES")[self.currentModule()]["configuration"] configurations = self.projectInfo("CONFIGURATIONS") if "type" not in configurations[configuration][property]["informations"] or configurations[configuration][property]["informations"]["type"] == "int": - configurations[configuration][property]["value"] = str(int(self.pageContent.propertyTable.cellWidget(index, 1).value())) + configurations[configuration][property]["value"] = unicode(int(self.pageContent.propertyTable.cellWidget(index, 1).value())) elif configurations[configuration][property]["informations"]["type"] == "enum": configurations[configuration][property]["value"] = unicode(self.pageContent.propertyTable.cellWidget(index, 1).currentText()) elif configurations[configuration][property]["informations"]["type"] == "boolean": @@ -222,6 +222,7 @@ class BModulePage(BWizardPage): """ Fills the module tree with the module entries separated in categories. """ + self.pageContent.moduleTree.clear() modules = self.projectInfo("MODULES") if not modules: return @@ -496,4 +497,4 @@ class QControlGroup(QObject): Slot called when the value of one of the stored widget changes. It emits another signal. """ - self.emit(SIGNAL("stateChanged"), id) \ No newline at end of file + self.emit(SIGNAL("stateChanged"), id)