Add the wizard start page
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 10 Dec 2008 15:51:46 +0000 (15:51 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 10 Dec 2008 15:51:46 +0000 (15:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1988 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BStartPage.py [new file with mode: 0644]

diff --git a/wizard/BStartPage.py b/wizard/BStartPage.py
new file mode 100644 (file)
index 0000000..8ee076e
--- /dev/null
@@ -0,0 +1,31 @@
+#!/usr/bin/env python
+# encoding: utf-8
+#
+# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
+# All rights reserved.
+#
+# $Id:$
+#
+# Author: Lorenzo Berni <duplo@develer.com>
+#
+
+from BWizardPage import *
+
+class BStartPage(BWizardPage):
+    
+    def __init__(self):
+        BWizardPage.__init__(self, "start.ui")
+        self._connectSignals()
+        self.setTitle(self.tr("Create or edit a beRTOS project"))
+        
+    def _connectSignals(self):
+        self.connect(self.pageContent.newButton, SIGNAL("clicked()"), lambda: self.mutualExclusion("new"))
+        self.connect(self.pageContent.editButton, SIGNAL("clicked()"), lambda: self.mutualExclusion("edit"))
+        
+    def mutualExclusion(self, button):
+        if(button == "new"):
+            self.pageContent.newButton.setChecked(True)
+            self.pageContent.editButton.setChecked(False)
+        elif(button == "edit"):
+            self.pageContent.newButton.setChecked(False)
+            self.pageContent.editButton.setChecked(True)
\ No newline at end of file