X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBWizard.py;h=1f794fd3b388b09a73fc56f0a544a22b99d6ad85;hb=ff9e3c69aa5e11915f056f45f6200009dd29127c;hp=a4436623bc965e803c431c31ee8aebf133afec59;hpb=ffe9b776589ff4004f722d4433fe0fbfa2131ea3;p=bertos.git diff --git a/wizard/BWizard.py b/wizard/BWizard.py index a4436623..1f794fd3 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -23,19 +23,24 @@ import BOutputPage import BCreationPage import BFinalPage +try: + from version import wizard_version +except ImportError: + wizard_version = "sandbox" + class BWizard(QWizard): """ Main class of the wizard. It adds the pages automatically. """ - + def __init__(self, page_list): QWizard.__init__(self) - self.setWindowTitle(self.tr("Create a BeRTOS project")) + self.setWindowTitle(self.tr("Create a BeRTOS project - rev.%1").arg(wizard_version)) self.setWindowIcon(QIcon(":/images/appicon.png")) self.setOption(QWizard.DisabledBackButtonOnLastPage, True) self.addPages(page_list) self.connectSignals() - + def addPages(self, page_list): """ Adds the pages in the wizard. @@ -48,7 +53,7 @@ class BWizard(QWizard): Connects the signals with the related slots. """ self.connect(self, SIGNAL("currentIdChanged(int)"), self.pageChanged) - + def pageChanged(self, pageId): """ Slot called when the user change the current page. It calls the reloadData @@ -57,7 +62,7 @@ class BWizard(QWizard): page = self.page(pageId) if page: page.reloadData() - + def project(self): """ Returns the BProject associated with the wizard.