From: duplo Date: Fri, 23 Apr 2010 09:16:03 +0000 (+0000) Subject: Add information to project. X-Git-Tag: 2.5.0~409 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=680daeaa37670d2ee2c5fcd763c2280c59a2a0d7;p=bertos.git Add information to project. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3499 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 06191f6b..569ebd94 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -66,6 +66,7 @@ class BFolderPage(BWizardPage): self.setProjectInfo("PROJECT_PATH", unicode(self.pageContent.projectPath.text())) self.setProjectInfo("PROJECT_NAME", os.path.basename(unicode(self.pageContent.projectPath.text()))) self.setProjectInfo("ROUTE", self.next_page) + self.setProjectInfo("PROJECT_FROM_PRESET", self.from_preset) return True else: return False @@ -132,10 +133,14 @@ class BFolderPage(BWizardPage): """ Contains the next page class. """ - if self.pageContent.customButton.isChecked(): - return BCpuPage - else: + if self.from_preset: return BBoardPage + else: + return BCpuPage + + @property + def from_preset(self): + return self.pageContent.predefinedButton.isChecked() def initializeAttributes(self): """