pyqt show wizard

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yves Glodt

    #1

    pyqt show wizard

    Hi,

    I have a mainwindow in my pyqt application, and on click of a button I
    want to start an assistant (wizard).

    I have create the wizard with the Qt Designer, generated the python code
    with pyuic, imported it "from assistant import *", and subclassed it as
    usual.

    To show it, the onclick method of the button does:

    w = Wizard()
    w.show()

    bot nothing happens...


    How must I do to start the wizard...?


    Best regards,
    Yves

  • David Boddie

    #2
    Re: pyqt show wizard

    Yves Glodt wrote: > I have a mainwindow in my pyqt application, and on
    click of a button I > want to start an assistant (wizard). > > I have
    create the wizard with the Qt Designer, generated the python code >
    with pyuic, imported it "from assistant import *", and subclassed it as[color=blue]
    > usual. > > To show it, the onclick method of the button does: > >[/color]
    w = Wizard() > w.show() > > bot nothing happens... If this is within
    a method that returns immediately after the show() call, the wizard
    will go out of scope and be deleted. I suspect that you really want to
    call w.exec_loop() intead, since this will only return control to
    the method after the user has finished interacting with the wizard.
    Take a look at the QWizard documentation for more information:
    http://doc.trolltech.com/3.3/qwizard.html David

    Comment

    • David Boddie

      #3
      Re: pyqt show wizard

      Summary of the usual mess made by the Google Groups web interface:


      I suspect that you really want to call w.exec_loop() instead, since
      this will only return control to the method after the user has finished
      interacting with the wizard.


      Take a look at the QWizard documentation for more information:


      Find information, resources and relevant links for trolltech.com. This domain may be for sale.



      David

      Comment

      • Iain King

        #4
        Re: pyqt show wizard


        David Boddie wrote:[color=blue]
        > Summary of the usual mess made by the Google Groups web interface:
        >
        >
        > I suspect that you really want to call w.exec_loop() instead, since
        > this will only return control to the method after the user has finished
        > interacting with the wizard.
        >
        >
        > Take a look at the QWizard documentation for more information:
        >
        >
        > http://doc.trolltech.com/3.3/qwizard.html
        >
        >
        > David[/color]

        test

        Comment

        Working...