[PyQt] Why won't my dialog show properly when I set its parent on instantiation?

Åke Kullenberg ake.kullenberg at gmail.com
Tue Nov 8 01:47:54 GMT 2011


In the attached example script, why won't the MyDialog instance show
properly when I set MyDialog's parent to self on line 20 instead of leaving
it blank?  First I thought the shortcut had stopped working somehow, but
obviously that's not the case.

In this case it doesn't really make any difference whether the parent is
set, but in my real case I need the parent to be set.

Am I missing something obvious here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111108/25e510b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script.py
Type: application/octet-stream
Size: 1179 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111108/25e510b1/attachment.obj>


More information about the PyQt mailing list