From: duplo Date: Mon, 22 Dec 2008 16:13:43 +0000 (+0000) Subject: Hide the description label and reset the text when no cpu is selected X-Git-Tag: 2.1.0~561 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f274955dde1ff30d451d55503ad2c9ef24ebec4f;p=bertos.git Hide the description label and reset the text when no cpu is selected git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2121 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 05657337..93919c9c 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -23,6 +23,7 @@ class BCpuPage(BWizardPage): def _populateCpuList(self): self.pageContent.cpuList.clear() + self.pageContent.cpuList.setCurrentItem(None) infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH")) for cpu in infos: item = QListWidgetItem(cpu["CPU_NAME"]) @@ -41,12 +42,15 @@ class BCpuPage(BWizardPage): def _setupUi(self): self.pageContent.descriptionLabel.setVisible(False) + self.pageContent.descriptionLabel.setText("") def reloadData(self): self._populateCpuList() cpuName = self._projectInfoRetrieve("CPU_NAME") + self._setupUi() if not cpuName is None: self._selectItem(cpuName) + self.emit(SIGNAL("completeChanged()")) def isComplete(self): if self.pageContent.cpuList.currentRow() != -1: