Add the project creation routine at the end of the wizard.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 14:45:19 +0000 (14:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 14:45:19 +0000 (14:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2240 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos.py

index 7017e0d2073fbef8720a242a29c0a8c3a93c51f9..78c34946b3ad093a1954764093b79c5c485ef703 100755 (executable)
@@ -21,10 +21,17 @@ import BProject
 import BStartPage
 import BWizard
 
+import bertos_utils
+
 def newProject():
     wizard = BWizard.BWizard()
     wizard.show()
-    wizard.exec_()
+    if wizard.exec_():
+        prj = wizard.project()
+        output = prj.info("OUTPUT")
+        if output == "makefile":
+            ## Now only supports the BeRTOS build system
+            bertos_utils.createBertosProject(prj)
     
 def editProject():
     print "editProject"