Add a final page after the project creation
[bertos.git] / wizard / BFinalPage.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 #
4 # Copyright 2009 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 import os
13
14 from PyQt4.QtGui import *
15
16 from BWizardPage import *
17 import bertos_utils
18
19 from const import *
20
21 class BFinalPage(BWizardPage):
22     
23     def __init__(self):
24         BWizardPage.__init__(self, UI_LOCATION + "/final_page.ui")
25         self.setTitle(self.tr("Project created successfully"))
26         
27     def reloadData(self):
28         QApplication.instance().setOverrideCursor(Qt.WaitCursor)
29         bertos_utils.createBertosProject(self.wizard().project())
30         QApplication.instance().restoreOverrideCursor()