How to use the rpg.gui.wizard.Wizard function in rpg

To help you get started, we’ve selected a few rpg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rh-lab-q / rpg / rpg.py View on Github external
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_())
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
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
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
def __init__(self, base, parent=None):
        super(Wizard, self).__init__(parent)

        self.base = base
        self.base.tip_html_style = (
            "<p><span style="\&quot;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:" +
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
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
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
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
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
def nextId(self):
        return Wizard.PageUninstall
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
def nextId(self):
        return Wizard.PageInstall
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
def nextId(self):
        return Wizard.PageCoprDistro
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
def nextId(self):
        return Wizard.PageCoprFinal
github rh-lab-q / rpg / rpg / gui / wizard.py View on Github external
def nextId(self):
        return Wizard.PageCoprBuild