Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
base = Base()
app = QApplication(sys.argv)
base.conf.parse_cmdline()
if base.conf.load_dnf:
base.sack = base.load_dnf_sack()
base.load_plugins()
wiz = Wizard(base)
wiz.setObjectName("RPG")
wiz.resize(850, 650)
wiz.setMinimumSize(QtCore.QSize(850, 650))
wiz.setMaximumSize(QtCore.QSize(850, 650))
wiz.setBaseSize(QtCore.QSize(850, 650))
wiz.show()
logging.info('GUI loaded')
sys.exit(app.exec_())
def nextId(self):
''' [int] Function that determines the next page after the current one
- returns integer value and then checks, which value is page"
in NUM_PAGES'''
return Wizard.PageScripts
def __init__(self, base, parent=None):
super(Wizard, self).__init__(parent)
self.base = base
self.base.tip_html_style = (
"<p><span style="\"font-size:12pt;">%s</span></p>")
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:" +
def nextId(self):
''' [int] Function that determines the next page after the current one
- returns integer value and then checks, which value is page"
in NUM_PAGES'''
return Wizard.PageSummary
def nextId(self):
''' [int] Function that determines the next page after the current one
- returns integer value and then checks, which value is page"
in NUM_PAGES'''
return Wizard.PageMandatory
def nextId(self):
return Wizard.PageUninstall
def nextId(self):
return Wizard.PageInstall
def nextId(self):
return Wizard.PageCoprDistro
def nextId(self):
return Wizard.PageCoprFinal
def nextId(self):
return Wizard.PageCoprBuild