[PyKDE] Opening windows

Doug Bell dougb at bellz.org
Thu Feb 27 01:31:01 GMT 2003


Konrad Hinsen wrote:
> How can I open a second window from within a PyQt application? If I understand 
> the Qt doc correctly, I need to pass the flag WStyle_Dialog, but this doesn't 
> seem to be defined in PyQt.

I think you mean the WType_Dialog, which is accessed from PyQt as
Qt.WType_Dialog.  So a widget constructor with no parent would be called
by:

w = QWidget(None, 'myName', Qt.WType_Dialog)


Doug.




More information about the PyQt mailing list