X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBModulePage.py;h=1d9e414be7ca37f06406003f75ac7cc172c4ee11;hb=cb9bbecad29402c1c53b8c87f61a81147f6d9dad;hp=4c282b3a1ae9a61b023473f575e15c7ca346c0e7;hpb=39f8477d1ca72e8579ae5edcc879f1bd25287555;p=bertos.git diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index 4c282b3a..1d9e414b 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -73,11 +73,12 @@ class BModulePage(BWizardPage): self.pageContent.moduleLabel.setText(module_description) self.pageContent.moduleLabel.setVisible(True) self.pageContent.propertyTable.clear() - if len(configuration) > 0: + self.pageContent.propertyTable.setRowCount(0) + if configuration != "": configurations = self._projectInfoRetrieve("CONFIGURATIONS")[configuration] - self.pageContent.propertyTable.setRowCount(0) + param_list = sorted(configurations["paramlist"]) index = 0 - for property in configurations: + for i, property in param_list: if "type" in configurations[property]["informations"] and configurations[property]["informations"]["type"] == "autoenabled": ## Doesn't show the hidden fields pass @@ -97,8 +98,6 @@ class BModulePage(BWizardPage): # Not defined type, rendered as a text field self.pageContent.propertyTable.setItem(index, 1, QTableWidgetItem(configurations[property]["value"])) index += 1 - else: - self.pageContent.propertyTable.setRowCount(0) def _insertCheckBox(self, index, value): ## boolean property