pyqt show wizard

Y

Yves Glodt

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
 
D

David Boddie

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
> usual. > > To show it, the onclick method of the button does: > >
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
 
D

David Boddie

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
 
I

Iain King

David said:
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

test
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top