def __init__(self):
QDialog.__init__(self)
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.setWindowTitle(self.tr("Create or edit a BeRTOS project"))
- self._initializeButtons()
+ self.initializeButtons()
self.content = uic.loadUi(UI_LOCATION + "/start.ui", None)
layout = QVBoxLayout()
layout.addWidget(self.content)
self.setLayout(layout)
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)
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)
self.button_group = QButtonGroup()
self.button_group.addButton(self.content.newButton)
self.button_group.addButton(self.content.editButton)
QWizard.__init__(self)
self.setWindowTitle(self.tr("Create a BeRTOS project"))
self.setOption(QWizard.DisabledBackButtonOnLastPage, True)
QWizard.__init__(self)
self.setWindowTitle(self.tr("Create a BeRTOS project"))
self.setOption(QWizard.DisabledBackButtonOnLastPage, True)
- self._addPages()
- self._connectSignals()
+ self.addPages()
+ self.connectSignals()
"""
Method used by the constructor in order to add the pages in the wizard.
"""
"""
Method used by the constructor in order to add the pages in the wizard.
"""
self.addPage(BCreationPage.BCreationPage())
self.addPage(BFinalPage.BFinalPage())
self.addPage(BCreationPage.BCreationPage())
self.addPage(BFinalPage.BFinalPage())
- def _connectSignals(self):
+ def connectSignals(self):
"""
Connects the signals with the related slots.
"""
"""
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.
"""
Slot called when the user change the current page. It calls the reloadData
method of the next page.