X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBWizard.py;h=2996f2a1f64d23ef14e1eaefa01e24d5e7ad4b55;hb=595b7ac4403cebcc30244eebc14b31e487d1da16;hp=0f8eb49f2fc6ff999c71f436c0cdcf253d3f1e5e;hpb=b8cac80114a0de8b6008ceb7b4cdfcaea6ade723;p=bertos.git diff --git a/wizard/BWizard.py b/wizard/BWizard.py index 0f8eb49f..2996f2a1 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -9,17 +9,32 @@ # Author: Lorenzo Berni # +from PyQt4.QtCore import * from PyQt4.QtGui import * import BFolderPage import BVersionPage import BCpuPage +import BToolchainPage class BWizard(QWizard): def __init__(self): QWizard.__init__(self) - self.setWindowTitle("Create a BeRTOS project") + self.setWindowTitle(self.tr("Create a BeRTOS project")) + self._addPages() + self._connectSignals() + + def _addPages(self): self.addPage(BFolderPage.BFolderPage()) self.addPage(BVersionPage.BVersionPage()) - self.addPage(BCpuPage.BCpuPage()) \ No newline at end of file + self.addPage(BCpuPage.BCpuPage()) + self.addPage(BToolchainPage.BToolchainPage()) + + def _connectSignals(self): + self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged) + + def _pageChanged(self, pageId): + page = self.page(pageId) + if page is not None: + page.reloadData() \ No newline at end of file