X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBFolderPage.py;h=7caf4382cfeb31795eb14293028bde91a9c51938;hb=77aa97eefef82a41e7bb5a8c4713016c700a6c54;hp=3b34f14af6e5bcbf4619d18e6866b8a24c53b4ef;hpb=bcc49085f310cc8f30075b0f8577767f1668c860;p=bertos.git diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 3b34f14a..7caf4382 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -39,6 +39,9 @@ from PyQt4.QtGui import * from BWizardPage import * import bertos_utils +from BVersionPage import BVersionPage +from BBoardPage import BBoardPage + from const import * class BFolderPage(BWizardPage): @@ -65,6 +68,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 +131,16 @@ class BFolderPage(BWizardPage): self.pageContent.directoryEdit.setText(QDir.toNativeSeparators(directory)) #### + + @property + def next_page(self): + """ + Contains the next page class. + """ + if self.pageContent.customButton.isChecked(): + return BVersionPage + else: + return BBoardPage def initializeAttributes(self): """