Re: [PyQt] Why won't my dialog show properly when I set its parent on instantiation?
On Tuesday 08 November 2011, 02:47:54 Åke Kullenberg wrote: 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? Well, is does show properly. The difference is in positioning (as expected). Without a parent, the frameless dialog is positioned somewhere on the screen by the WM, in the other case, it is positioned relative to the main window. For some reason, the WM overlays the main window with the dialog then, but the concrete behavior of this rather esoteric window flag is highly WM dependent anyway. Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Why won't my dialog show properly when I set its parent on instantiation?
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? script.py Description: Binary data ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt