From d7f7bae3bc88eade97c9fc12dc81b45fdfb4f285 Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 1 Apr 2009 07:57:20 +0000 Subject: [PATCH] Remove _ from method names git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2454 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BStartPage.py | 12 ++++++------ wizard/BWizard.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/wizard/BStartPage.py b/wizard/BStartPage.py index cc6f1c9e..f66b5e27 100644 --- a/wizard/BStartPage.py +++ b/wizard/BStartPage.py @@ -19,22 +19,22 @@ class BStartPage(QDialog): def __init__(self): QDialog.__init__(self) - self._setupUi() - self._connectSignals() + self.setupUi() + self.connectSignals() self.setWindowTitle(self.tr("Create or edit a BeRTOS project")) - self._initializeButtons() + self.initializeButtons() - def _setupUi(self): + def setupUi(self): self.content = uic.loadUi(UI_LOCATION + "/start.ui", None) layout = QVBoxLayout() layout.addWidget(self.content) self.setLayout(layout) - def _connectSignals(self): + def connectSignals(self): self.connect(self.content.newButton, SIGNAL("clicked()"), self.newProject) self.connect(self.content.editButton, SIGNAL("clicked()"), self.editProject) - def _initializeButtons(self): + def initializeButtons(self): self.button_group = QButtonGroup() self.button_group.addButton(self.content.newButton) self.button_group.addButton(self.content.editButton) diff --git a/wizard/BWizard.py b/wizard/BWizard.py index 004fdf3e..3ea2dac6 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -32,10 +32,10 @@ class BWizard(QWizard): QWizard.__init__(self) self.setWindowTitle(self.tr("Create a BeRTOS project")) self.setOption(QWizard.DisabledBackButtonOnLastPage, True) - self._addPages() - self._connectSignals() + self.addPages() + self.connectSignals() - def _addPages(self): + def addPages(self): """ Method used by the constructor in order to add the pages in the wizard. """ @@ -48,13 +48,13 @@ class BWizard(QWizard): self.addPage(BCreationPage.BCreationPage()) self.addPage(BFinalPage.BFinalPage()) - def _connectSignals(self): + def connectSignals(self): """ Connects the signals with the related slots. """ - self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged) + self.connect(self, SIGNAL("currentIdChanged(int)"), self.pageChanged) - def _pageChanged(self, pageId): + def pageChanged(self, pageId): """ Slot called when the user change the current page. It calls the reloadData method of the next page. -- 2.25.1