From: duplo Date: Wed, 15 Apr 2009 12:55:43 +0000 (+0000) Subject: Check for information about toolchain X-Git-Tag: 2.1.0~174 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=aeffdf2a993abf6e3a707d4f97c9be9d50d8b566;p=bertos.git Check for information about toolchain git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2508 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BCreationPage.py b/wizard/BCreationPage.py index e865a2cc..e40db963 100644 --- a/wizard/BCreationPage.py +++ b/wizard/BCreationPage.py @@ -4,7 +4,7 @@ # Copyright 2009 Develer S.r.l. (http://www.develer.com/) # All rights reserved. # -# $Id:$ +# $Id$ # # Author: Lorenzo Berni # @@ -52,8 +52,13 @@ class BCreationPage(BWizardPage): toolchain_info = self.projectInfo("TOOLCHAIN") if "target" in toolchain_info.keys(): toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("target: " + toolchain_info["target"])])) + version = "" if "version" in toolchain_info.keys(): - toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("version: " + "GCC " + toolchain_info["version"] + " (" + toolchain_info["build"] + ")")])) + version += "version: " + "GCC " + toolchain_info["version"] + " " + if "build" in toolchain_info.keys(): + version += "(" + toolchain_info["build"] + ")" + if "version" in toolchain_info.keys(): + toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([version])) toolchain_path = QTreeWidgetItem(toolchain_title, QStringList([self.tr("path: " + os.path.normpath(toolchain_info["path"]))])) top_level.append(toolchain_title) module_title = QTreeWidgetItem(QStringList([self.tr("Modules")]))