[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Why won't my dialog show properly when I set its parent
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2011-11-15 22:35:14
Message-ID: 201111152335.14711.hpj () urpla ! net
[Download RAW message or body]

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 list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic