From: duplo Date: Thu, 26 Mar 2009 11:19:25 +0000 (+0000) Subject: Show 'No configuration needed' for modules that don't need any configuration X-Git-Tag: 2.1.0~243 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d293a14828642a25816611a62031bea7da59bdc8;p=bertos.git Show 'No configuration needed' for modules that don't need any configuration git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2439 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index 1d9e414b..cda3e349 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -98,6 +98,10 @@ class BModulePage(BWizardPage): # Not defined type, rendered as a text field self.pageContent.propertyTable.setItem(index, 1, QTableWidgetItem(configurations[property]["value"])) index += 1 + if self.pageContent.propertyTable.rowCount() == 0: + module_label = self.pageContent.moduleLabel.text() + module_label += "\n\nNo configuration needed." + self.pageContent.moduleLabel.setText(module_label) def _insertCheckBox(self, index, value): ## boolean property