From: duplo Date: Tue, 16 Dec 2008 09:15:38 +0000 (+0000) Subject: Add the isComplete reimplementation X-Git-Tag: 2.1.0~648 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d6520bc999f86420c717efb28929989c20900b1c;p=bertos.git Add the isComplete reimplementation git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2034 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BStartPage.py b/wizard/BStartPage.py index 46d1abd0..e8432bd6 100644 --- a/wizard/BStartPage.py +++ b/wizard/BStartPage.py @@ -35,6 +35,9 @@ class BStartPage(BWizardPage): self.pageContent.newDescription.setVisible(False) self.pageContent.editDescription.setVisible(False) + def isComplete(self): + return self.pageContent.newButton.isChecked() or self.pageContent.editButton.isChecked() + def newProject(self): filename = QFileDialog.getSaveFileName(self, self.tr("Destination directory"), "", "", "", QFileDialog.ShowDirsOnly) if not filename.isEmpty(): @@ -42,9 +45,11 @@ class BStartPage(BWizardPage): self.pageContent.newDescription.setVisible(True) # TODO: It's better to create it at the end of the wizard... bertos_utils.createBertosProject(filename) + self.emit(SIGNAL("completeChanged()")) else: self.pageContent.newDescription.setText("") self.pageContent.newDescription.setVisible(False) + self.pageContent.newButton.setChecked(False) def editProject(self): - pass \ No newline at end of file + self.pageContent.newButton.setChecked(False) \ No newline at end of file