[PyQt] SO question: pyqt how to make application truly active

triccare triccare triccare at gmail.com
Mon Apr 6 14:35:32 BST 2015


Greetings,

I have posted the following question to stackoverflow
<http://stackoverflow.com/questions/29400317/pyqt-how-to-make-application-truly-active>,
but no bites yet. Reposting here to see what can be discovered.

Thank you for your time.

-------------

Under OS X, using the zetcode example for menubar
<http://zetcode.com/gui/pyqt4/menusandtoolbars/>, if one runs this from the
command line:

$ python menubar.py

the application starts, but at the bottom of the window stack. This can be
fixed by adding self.raise_()

to the code.

However, the application is still not immediately active. The terminal
application menubar still shows, not the pyqt menubar.

The only way to get the pyqt menubar to show is to switch away from the
pyqt application or terminal application and back again.

Is this expected behavior? Is there anyway to fix this so the pyqt
application immediately becomes active, i.e. the pyqt menubar immediately
shows upon execution.

Versions: OS X 10.9, Qt 4.8.6, PyQt 4.11.3, SIP 4.16.5, python 2.7.8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150406/8fe667cd/attachment.html>


More information about the PyQt mailing list