From f274955dde1ff30d451d55503ad2c9ef24ebec4f Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 22 Dec 2008 16:13:43 +0000 Subject: [PATCH] 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 --- wizard/BCpuPage.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.25.1