X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBWizardPage.py;h=81737e34249b34652f9810d2dc21e89486fcae27;hb=19ac4f399e4c7c31308697333d0a14b602df8c07;hp=f7b60c37309599b25a3afd6ae4d30e8784a968cd;hpb=ee276ea346d90090f039720664dbb18d50e6bf7b;p=bertos.git diff --git a/wizard/BWizardPage.py b/wizard/BWizardPage.py index f7b60c37..81737e34 100644 --- a/wizard/BWizardPage.py +++ b/wizard/BWizardPage.py @@ -13,10 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4 import uic -if PYQT_VERSION_STR > "4.4.3": - import qvariant_converter_new as qvariant_converter -else: - import qvariant_converter_old as qvariant_converter +import qvariant_converter class BWizardPage(QWizardPage): @@ -27,6 +24,9 @@ class BWizardPage(QWizardPage): layout.addWidget(self.pageContent) self.setLayout(layout) + def _exceptionOccurred(self, message): + QMessageBox.critical(self, self.tr("Error occurred"), message, QMessageBox.Ok, QMessageBox.NoButton) + def _settingsStore(self, key, value): QApplication.instance().settings.setValue(QString(key), value) @@ -38,6 +38,9 @@ class BWizardPage(QWizardPage): def _projectInfoRetrieve(self, key): return QApplication.instance().project.info(key) + + def _project(self): + return QApplication.instance().project def versions(self): return qvariant_converter.getStringList(self._settingsRetrieve("versions")) @@ -64,4 +67,7 @@ class BWizardPage(QWizardPage): self._settingsStore("toolchains", qvariant_converter.convertBoolDict(toolchains)) def reloadData(self): + pass + + def saveData(self): pass \ No newline at end of file