On 15 May, 2013, at 22:32, "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.

That's odd. I would expect the opposite behavior because your application 
should get the focus when launched by the finder and the terminal still has 
focus when you start a script in the Terminal app.  

Does the Qt application example in py2app's repository have the same behavior 
(last time I checked it worked fine on my machine)? 

What application does have the focus when you double click on the application? 
And btw, what do you mean by "launch from the terminal" in your SO question? 
Are you starting the .app from the Terminal using 'MyApp.app/Contents/MyAp', or 
by running 'open MyApp.app' or even by just running 'python myapp.py'?

Ronald

> 
> 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