Correct a typo
[bertos.git] / wizard / BWizardPage.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 #
4 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
5 # All rights reserved.
6 #
7 # $Id:$
8 #
9 # Author: Lorenzo Berni <duplo@develer.com>
10 #
11
12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import *
14 from PyQt4 import uic
15
16 class BWizardPage(QWizardPage):
17     
18     def __init__(self, wizardGui, parent = None):
19         QWizardPage.__init__(self, parent)
20         self.pageContent = uic.loadUi(wizardGui, None)
21         layout = QVBoxLayout()
22         layout.addWidget(self.pageContent)
23         self.setLayout(layout)
24     
25     def _settingsStore(self, key, value):
26         QApplication.instance().settings.setValue(QString(key), QVariant(value))
27     
28     def _settingsRetrieve(self, key):
29         return QApplication.instance().settings.value(QString(key), QVariant())
30     
31     def _projectInfoStore(self, key, value):
32         QApplication.instance().project.setInfo(key, value)
33     
34     def _projectInfoRetrieve(self, key):
35         return QApplication.instance().project.info(key)