From d293a14828642a25816611a62031bea7da59bdc8 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 26 Mar 2009 11:19:25 +0000 Subject: [PATCH] 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 --- wizard/BModulePage.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.25.1