From: duplo Date: Wed, 17 Dec 2008 15:14:21 +0000 (+0000) Subject: Open the wizard with the exec_() statement only when needed X-Git-Tag: 2.1.0~622 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f2e6ff05112a4f58fbc6d7a9acf7c414a7e8488d;p=bertos.git Open the wizard with the exec_() statement only when needed git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2060 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos.py b/wizard/bertos.py index 72c41773..80001466 100644 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -16,13 +16,16 @@ from PyQt4.QtGui import * import BStartPage +import BFolderPage import BVersionPage def newProject(): - QApplication.instance().wizard = QWizard() - QApplication.instance().wizard.setWindowTitle("Create a BeRTOS project") - QApplication.instance().wizard.addPage(BVersionPage.BVersionPage()) - QApplication.instance().wizard.show() + wizard = QWizard() + wizard.setWindowTitle("Create a BeRTOS project") + wizard.addPage(BFolderPage.BFolderPage()) + wizard.addPage(BVersionPage.BVersionPage()) + wizard.show() + wizard.exec_() def editProject(): print "editProject"