From: duplo Date: Thu, 18 Dec 2008 13:18:16 +0000 (+0000) Subject: Force the reload of the page data when the wizard page is showed X-Git-Tag: 2.1.0~604 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0b7b3b3f01fa8773b3a9707f99df71587414ee86;p=bertos.git Force the reload of the page data when the wizard page is showed git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2078 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BWizard.py b/wizard/BWizard.py index 0f8eb49f..b7490667 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -9,6 +9,7 @@ # Author: Lorenzo Berni # +from PyQt4.QtCore import * from PyQt4.QtGui import * import BFolderPage @@ -20,6 +21,18 @@ class BWizard(QWizard): def __init__(self): QWizard.__init__(self) self.setWindowTitle("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()) + + 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