[PyQt] [Bug] PyQt5 version 5.7.0 OS X.11.4 (El Capitan) MenuBar requires defocus + refocus of app to work

Maxwell Grady max.grady at gmail.com
Sat Sep 24 18:40:02 BST 2016


(realized I didn't hit reply all)
To clarify, my code is not part of an app or app bundle and is just run
from the command line. The minimal working example to reproduce the bug
that I included is also run just from the command line and is not part of
an app nor app bundle.

Simply invoking " python pyqt5-testmenubar.py" from the command line will
run the code and show the bug.

On Thu, Sep 22, 2016 at 1:45 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> Hi,
>
> On Thu, Sep 22, 2016 at 7:03 PM, Maxwell Grady <max.grady at gmail.com>
> wrote:
> > I have a PyQt5 v 5.7.0 app that is cross platform and functioning fine on
> > Windows 10 and Ubuntu 16.04 however on OS X there is a problem with the
> > menubar.
> >
> > When the app is started on OS X, the menubar at the top of the screen
> > (native menubar location) appears but can not be clicked. Keyboard
> shortcuts
> > still work but clicking the menu has no result. If you switch focus to
> > another program (Cmd+Tab) and then switch focus back to the PyQt app
> > (Cmd+Tab) then the menu is clickable and functions as normal.
>
> I don't think this is a PyQt issue or even Qt one, I suspect this is
> related to the app bundle you use for the application or lack of it. I
> see exactly the same issue with an Eclipse based application when
> starting it from inside Eclipse (which directly runs java with some
> commandline arguments). When launching the final build of the
> application through an app bundle everything is working fine.
>
> So I suspect that this is related to having an app bundle or some
> setting within the app bundle.
>
> Andreas
>



-- 
University of New Hampshire
Department of Physics
Pohl Group
DeMeritt Hall 119
---
Síocháin agus Grá
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160924/b7d73a36/attachment.html>


More information about the PyQt mailing list