X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBOutputPage.py;h=fb7eaade90347573df45ae343febdad126cb6e15;hb=ca1a17d62748010cd95a0012f67a9e80c6565d73;hp=c8e22c9fe0625f2e9bf3e7ac53b3e207067ecae8;hpb=a1aee0fd51fc5c32d712e76367abc3a2365c6324;p=bertos.git diff --git a/wizard/BOutputPage.py b/wizard/BOutputPage.py index c8e22c9f..fb7eaade 100644 --- a/wizard/BOutputPage.py +++ b/wizard/BOutputPage.py @@ -18,6 +18,9 @@ import bertos_utils from const import * class BOutputPage(BWizardPage): + """ + Page of the wizard that show a little summary of the previous decisions. + """ def __init__(self): BWizardPage.__init__(self, UI_LOCATION + "/output_select.ui") @@ -26,11 +29,17 @@ class BOutputPage(BWizardPage): self._projectInfoStore("OUTPUT", []) def _connectSignals(self): + """ + Connects the signals with the related slots. + """ self.connect(self.pageContent.eclipseCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "eclipse")) self.connect(self.pageContent.xcodeCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "xcode")) self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "codelite")) def _modeChecked(self, checked, value): + """ + Slot called when one of the mode checkbox is checked. It stores it. + """ output_list = self._projectInfoRetrieve("OUTPUT") if checked == Qt.Checked: output_list.append(value)