[PyQt] PyQt application appears always in the background

Brian Kelley kelley at eyesopen.com
Fri Jun 12 15:30:49 BST 2009

I might be wrong here, but I expect the problem is that you are not making an application bundle.  Is this the case?  I.e. Are you running

python foo.py

To launch the demo.  Basically, on OSX, qt appications either need to have "Rez" run on them or be placed in an application bundle.  The bundle can simply run a script that launches your code.

Otherwise you can make an application bundle that contains everything, turning it into a bundle is probably what you want to do, see the py2app discussion for example.  I have seen cases where you can't even get keyboard input with running "Rez" (which you really can't in this case) or making an application bundle.


On 6/11/09 2:26 AM, "Michael Held" <michael.held at bc.biol.ethz.ch> wrote:


my PyQt application appears always in the background (the last window in
the stack of all Mac applications) which is annoying since I want so see
my app on top of all other windows.
is there any PyQt or system option?

I am running PyQt4.5 + Python2.6 on MacOS 10.5.

thanks a lot!

PyQt mailing list    PyQt at riverbankcomputing.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090612/51c4c18e/attachment.html

More information about the PyQt mailing list