From f2e6ff05112a4f58fbc6d7a9acf7c414a7e8488d Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 17 Dec 2008 15:14:21 +0000 Subject: [PATCH] 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 --- wizard/bertos.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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" -- 2.25.1