本文整理汇总了Python中PyQt5.QtWidgets.QWizard方法的典型用法代码示例。如果您正苦于以下问题:Python QtWidgets.QWizard方法的具体用法?Python QtWidgets.QWizard怎么用?Python QtWidgets.QWizard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtWidgets
的用法示例。
在下文中一共展示了QtWidgets.QWizard方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QWizard [as 别名]
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)
示例2: checkComponents
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QWizard [as 别名]
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)
示例3: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QWizard [as 别名]
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)