[Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

Michael McCracken michael.mccracken at gmail.com
Wed May 15 22:50:13 CEST 2013


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 <bergs at 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 at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20130515/834ac16b/attachment.html>


More information about the Pythonmac-SIG mailing list