X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCreationPage.py;h=e40db963a2aacb71ffa5cb841f0a8030263eb079;hb=53af4558886960f99632fb9cea1af91ce3fe82b1;hp=e865a2cc2d89c757a7b41185f15c33a679a7dc5c;hpb=97903dc626136396587334b1d78f7623c91e9934;p=bertos.git 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")]))