From e00a0e97d2ec8ef378448598be142f4647b74756 Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 28 Jan 2009 11:25:25 +0000 Subject: [PATCH] Complete the Output page ui class git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2233 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BOutputPage.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/wizard/BOutputPage.py b/wizard/BOutputPage.py index e233612e..cd1290ee 100644 --- a/wizard/BOutputPage.py +++ b/wizard/BOutputPage.py @@ -21,3 +21,24 @@ class BOutputPage(BWizardPage): def __init__(self): BWizardPage.__init__(self, "output_select.ui") self.setTitle(self.tr("Choose the project output")) + self._setupButtonGroup() + self._connectSignals() + + def _connectSignals(self): + self.connect(self._buttonGroup, SIGNAL("buttonClicked(int)"), self._buttonClicked) + + def _setupButtonGroup(self): + self._buttonGroup = QButtonGroup() + self._buttonGroup.addButton(self.pageContent.bbsButton) + self._buttonGroup.addButton(self.pageContent.eclipseButton) + self._buttonGroup.addButton(self.pageContent.codeliteButton) + self._buttonGroup.addButton(self.pageContent.xcodeButton) + + def _buttonClicked(self): + self.emit(SIGNAL("completeChanged()")) + + def isComplete(self): + for button in self._buttonGroup.buttons(): + if button.isChecked(): + return True + return False \ No newline at end of file -- 2.25.1