Open the wizard with the exec_() statement only when needed
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Dec 2008 15:14:21 +0000 (15:14 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Dec 2008 15:14:21 +0000 (15:14 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2060 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos.py

index 72c417735fdd1dbf8cda1624b264adebff6ba539..80001466c8bd9548c0a80e3e5966caa9967ff4f5 100644 (file)
@@ -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"