Exemplo n.º 1
0
    def __init__(self, parent):
        QWizard.__init__(self, parent, Qt.Dialog)
        ProjectWizard.__init__(self)
        self._main = parent
        ProjectWizard.types['Python'] = self
        self.setWindowTitle('NINJA - New Project Wizard')
        self.setPixmap(QWizard.LogoPixmap, QPixmap(resources.images['icon']))
        self.option = 'Python'

        pageType = PageProjectType(self)
        self.addPage(pageType)

        self.addPage(PageProjectProperties())
Exemplo n.º 2
0
    def __init__(self, parent):
        QWizard.__init__(self, parent, Qt.Dialog)
        ProjectWizard.__init__(self)
        self._main = parent
        ProjectWizard.types['Python'] = self
        self.setWindowTitle('NINJA - New Project Wizard')
        self.setPixmap(QWizard.LogoPixmap, QPixmap(resources.images['icon']))
        self.option = 'Python'

        pageType = PageProjectType(self)
        self.addPage(pageType)

        self.addPage(PageProjectProperties())
Exemplo n.º 3
0
    def __init__(self, main):
        QDialog.__init__(self)
        ProjectWizard.__init__(self)
        self._main = main
        self.setModal(True)
        vbox = QVBoxLayout(self)
        vbox.addWidget(QLabel('Select the Type of Project:'))
        self.listWidget = QListWidget()
        projectTypes = self.types.keys()
        projectTypes.sort()
        self.listWidget.addItems(projectTypes)
        vbox.addWidget(self.listWidget)
        btnNext = QPushButton('Next')
        vbox.addWidget(btnNext)
        if len(projectTypes) > 0:
            self.listWidget.setCurrentRow(0)
        else:
            btnNext.setEnabled(False)

        self.connect(btnNext, SIGNAL("clicked()"), self._open_project)
Exemplo n.º 4
0
    def __init__(self, main):
        QDialog.__init__(self)
        ProjectWizard.__init__(self)
        self._main = main
        self.setModal(True)
        vbox = QVBoxLayout(self)
        vbox.addWidget(QLabel('Select the Type of Project:'))
        self.listWidget = QListWidget()
        projectTypes = self.types.keys()
        projectTypes.sort()
        self.listWidget.addItems(projectTypes)
        vbox.addWidget(self.listWidget)
        btnNext = QPushButton('Next')
        vbox.addWidget(btnNext)
        if len(projectTypes) > 0:
            self.listWidget.setCurrentRow(0)
        else:
            btnNext.setEnabled(False)

        self.connect(btnNext, SIGNAL("clicked()"), self._open_project)