From 64308a77301362c229de110ba08ead5500c05bbb Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 10 Dec 2008 15:51:46 +0000 Subject: [PATCH] Add the wizard start page git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1988 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BStartPage.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 wizard/BStartPage.py diff --git a/wizard/BStartPage.py b/wizard/BStartPage.py new file mode 100644 index 00000000..8ee076e2 --- /dev/null +++ b/wizard/BStartPage.py @@ -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 +# + +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 -- 2.25.1