PyQt - multiple window instances?

Diez B. Roggisch deets at nospam.web.de
Fri Feb 24 14:20:26 EST 2006


gregarican schrieb:
> I have an PyQt app were I need one of the windows to be able to be
> opened more than one at a time. When I try to open it I only get one
> instance at the same time. The main class is the QWidget() class with a
> QGridLayout() displaying the various window components.
> 
> Is there a certain flag I need to set or different constructor I need
> to use to allow the window to be opened more than one at a time?

No. Must be something you're doing - I guess it might be that you should keep a reference to the old windows, otherwise 
they might go away when garbage-collected.

Diez



More information about the Python-list mailing list