Hi, I answered on stack overflow too - but the short version is call show()
*then also call*  raise_() on your main window.

The answer to an earlier version of this question has a couple of links for
more background:
http://stackoverflow.com/questions/3662559/why-does-my-pyqt-application-open-in-the-background-on-mac-os-x


On Wed, May 15, 2013 at 1:32 PM, Berg, Stuart <be...@janelia.hhmi.org>wrote:

> Hi,
>
> I'm using py2app to packages my (cross-platform) PyQt app into a Mac OS X
> application bundle.  (py2app is great, btw!)
>
> I was wondering if anyone could point me to some documentation that
> explains in detail how a python app bundle's launch process differs from
> launching the python app directly from the command-line.  My app bundle
> seems to function exactly the same in most respects, but my main window
> doesn't activate unless I manually activate the application via command-tab.
>
> I give a few more details in this question on stack overflow:
>
> http://stackoverflow.com/questions/16574315/qt-mainwindow-does-not-appear-until-application-is-activated-manually
>
> Any ideas, suggestions, or links would be appreciated.
>
> Thanks,
> Stuart
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to