X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2FBFolderPage.py;fp=wizard%2FBFolderPage.py;h=7e5dcca1115bac9ba30540f8b3102f84290b3e4c;hb=3df1334df82a572917f818c88387440a4d8eeee0;hp=3b34f14af6e5bcbf4619d18e6866b8a24c53b4ef;hpb=84c2876a43e9aadb52f39c84afacef3f67bcf2a2;p=bertos.git diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 3b34f14a..7e5dcca1 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -39,6 +39,8 @@ from PyQt4.QtGui import * from BWizardPage import * import bertos_utils +from BVersionPage import BVersionPage + from const import * class BFolderPage(BWizardPage): @@ -65,6 +67,13 @@ class BFolderPage(BWizardPage): return True else: return False + + def nextId(self): + """ + Overload of the QWizardPage nextId method. + """ + return self.wizard().pageIndex(self.next_page) + #### @@ -121,6 +130,19 @@ class BFolderPage(BWizardPage): self.pageContent.directoryEdit.setText(QDir.toNativeSeparators(directory)) #### + + @property + def next_page(self): + """ + Contains the next page class. + """ + # Actually it does nothing. + if self.pageContent.customButton.isChecked(): + return BVersionPage + else: + # TODO: change it with the predefined board selection page. + # return BBoardPage + return BVersionPage def initializeAttributes(self): """