Python PyQt5.QtWidgets.QWizard() Examples

The following are 3 code examples of PyQt5.QtWidgets.QWizard(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module PyQt5.QtWidgets , or try the search function .
Example #1
Source File: firstRunWizard.py    From Miyamoto with GNU General Public License v3.0 6 votes vote down vote up
def __init__(self):
        super().__init__()

        self.setWizardStyle(QtWidgets.QWizard.ClassicStyle)
        self.setOptions(QtWidgets.QWizard.IndependentPages|QtWidgets.QWizard.NoBackButtonOnStartPage)

        self.gamePathPage = GamePathPage()
        self.objectsPathPage = ObjectsPathPage()
        self.themesPage = ThemesPage()

        self.addPage(self.gamePathPage)
        self.addPage(self.objectsPathPage)
        self.addPage(self.themesPage)

        self.finished = False
        self.button(QtWidgets.QWizard.FinishButton).clicked.connect(self.finishClicked) 
Example #2
Source File: wizard.py    From pychemqt with GNU General Public License v3.0 5 votes vote down vote up
def checkComponents(self, id):
        """Component window can be only passed with any added components"""
        if id == 1:
            self.button(QtWidgets.QWizard.NextButton).setEnabled(len(
                self.componentes.indices) != 0)
        self.button(QtWidgets.QWizard.CustomButton1).setVisible(id == 2) 
Example #3
Source File: wizard.py    From rpg with GNU General Public License v2.0 5 votes vote down vote up
def __init__(self, base, parent=None):
        super(Wizard, self).__init__(parent)

        self.base = base
        self.base.tip_html_style = (
            "<html><head/><body><p><span style=\"font-size:12pt; " +
            "color:grey;\">%s</p></body></html>")
        self.setWindowTitle(self.tr("RPG"))
        self.setWizardStyle(self.ClassicStyle)
        btnList = ([QWizard.CancelButton, QWizard.Stretch,
                    QWizard.BackButton, QWizard.NextButton,
                    QWizard.FinishButton])
        self.setButtonLayout(btnList)
        self.setStyleSheet("QTextEdit { border-style: solid;" +
                           "border-width: 1px;" +
                           "border-color: rgb(178, 182, 178);" +
                           "border-radius: 3px;" +
                           "background-color:" +
                           "rgb(237, 237, 237);}")

        # Setting pages to wizard
        self.setPage(self.PageIntro, IntroPage(self))
        self.setPage(self.PageImport, ImportPage(self))
        self.setPage(self.PageMandatory, MandatoryPage(self))
        self.setPage(self.PageSummary, SummaryPage(self))
        self.setPage(self.PageScripts, ScriptsPage(self))
        self.setPage(self.PageInstall, InstallPage(self))
        self.setPage(self.PageRequires, RequiresPage(self))
        self.setPage(self.PageUninstall, UninstallPage(self))
        self.setPage(self.PageBuild, BuildPage(self))
        self.setPage(self.PageCoprLogin, CoprLoginPage(self))
        self.setPage(self.PageCoprDistro, CoprDistroPage(self))
        self.setPage(self.PageCoprBuild, CoprBuildPage(self))
        self.setPage(self.PageCoprFinal, CoprFinalPage(self))
        self.setStartId(self.PageIntro)