From: duplo Date: Wed, 28 Jan 2009 11:55:50 +0000 (+0000) Subject: Add utility method for the project infos X-Git-Tag: 2.1.0~446 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f143322ab6e74636c576c0929eb2577ec8b56890;p=bertos.git Add utility method for the project infos git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2236 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BProject.py b/wizard/BProject.py index 9c4a11a9..08bac0f0 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -23,4 +23,4 @@ class BProject(object): return None def __repr__(self): - return repr(self.infos()) \ No newline at end of file + return repr(self.infos) \ No newline at end of file diff --git a/wizard/BWizard.py b/wizard/BWizard.py index 497ea51d..d9dc4994 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -9,6 +9,8 @@ # Author: Lorenzo Berni # +import copy + from PyQt4.QtCore import * from PyQt4.QtGui import * @@ -46,4 +48,7 @@ class BWizard(QWizard): prevPage.saveData() page = self.page(pageId) if page is not None: - page.reloadData() \ No newline at end of file + page.reloadData() + + def _project(self): + return copy.deepcopy(QApplication.instance().project) \ No newline at end of file