X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBModulePage.py;h=5bee07241ac296482621c655e327a5495ff48640;hb=563795df4180aaceb7d69306551230c98fbca879;hp=f1eaad6794f0fe54b54859d1df5816a3785d1f32;hpb=ec37fb085c647d366b21a9be224e72225fb469dd;p=bertos.git diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index f1eaad67..5bee0724 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -218,6 +218,8 @@ class BModulePage(BWizardPage): configurations[configuration][property]["value"] = "1" else: configurations[configuration][property]["value"] = "0" + elif configurations[configuration][property]["informations"]["type"] == "hex": + configurations[configuration][property]["value"] = unicode(self.pageContent.propertyTable.cellWidget(index, 1).text()) self.setProjectInfo("CONFIGURATIONS", configurations) if self.moduleItem(self.currentModule()).checkState(0) == Qt.Checked: self.dependencyCheck(self.moduleItem(self.currentModule())) @@ -340,7 +342,7 @@ class BModulePage(BWizardPage): maximum = int(informations["max"]) spin_box.setRange(minimum, maximum) spin_box.setSuffix(suff) - spin_box.setValue(int(value.replace("L", "").replace("U", ""), 0)) + spin_box.setValue(int(value.replace("L", "").replace("U", ""))) self._control_group.addControl(index, spin_box) @@ -604,6 +606,8 @@ class QControlGroup(QObject): self.connect(control, SIGNAL("currentIndexChanged(int)"), lambda: self.stateChanged(id)) elif type(control) == QDoubleSpinBox: self.connect(control, SIGNAL("valueChanged(double)"), lambda: self.stateChanged(id)) + elif type(control) == QLineEdit: + self.connect(control, SIGNAL("textChanged(QString)"), lambda: self.stateChanged(id)) def clear(self): """