本文整理匯總了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)