Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my PyQt application open in the background on Mac OS X?

Tags:

People also ask

Do you need Qt for PyQt?

Your PyQt5 license must be compatible with your Qt license. If you use the GPL version, then your code must also use a GPL-compatible license. If you want to use PyQt5 to create commercial applications, then you'll need a commercial license for your installation.


I've got a PyQt app which I'm developing in Mac OS X, and whenever I try launching the app, it always is the very bottom application on the stack. So after launching, I always need to command+tab all the way to the end of the application list to switch focus to it.

I read that this behavior can be fixed by launching the app with the "pythonw" command, but this doesn't make any difference, nor does renaming my script to have the .pyw extension (or doing both). What could be causing this problem?