#
import sys
+
from PyQt4.QtCore import *
from PyQt4.QtGui import *
+
import BStartPage
+
import BVersionPage
+def newProject():
+ QApplication.instance().wizard = QWizard()
+ QApplication.instance().wizard.setWindowTitle("Create a BeRTOS project")
+ QApplication.instance().wizard.addPage(BVersionPage.BVersionPage())
+ QApplication.instance().wizard.show()
+
+def editProject():
+ print "editProject"
+
+def showStartPage():
+ QApplication.instance().dialog = BStartPage.BStartPage()
+ QApplication.instance().connect(QApplication.instance().dialog, SIGNAL("newProject"), newProject)
+ QApplication.instance().connect(QApplication.instance().dialog, SIGNAL("editProject"), editProject)
+ QApplication.instance().dialog.show()
+
def main():
app = QApplication(sys.argv)
app.settings = QSettings("Develer", "Bertos Configurator")
QResource.registerResource("bertos.rcc")
- startPage = BStartPage.BStartPage()
- wizard = QWizard()
- wizard.setWindowTitle("Welcome in BeRTOS configuration wizard")
- wizard.addPage(startPage)
- wizard.addPage(BVersionPage.BVersionPage())
- wizard.show()
+ showStartPage()
sys.exit(app.exec_())
-
if __name__ == '__main__':
main()