[PyQt] com.apple.xbs Error-- Please help- Thank you

David Cortesi davecortesi at gmail.com
Tue Mar 28 19:38:34 BST 2017


exitButton.setMenuRole( QAction.QuitRole )


To understand what is happening with the menubar read this page and the
> MenuRole.
>
> http://doc.qt.io/qt-5/qaction.html
>

Good pointer! However I added the line

    exitButton.setMenuRole( QAction.QuitRole )

to the appropriate place in the test program and also changed the text of
exitButton from 'Exit' to 'Quit', and the behavior didn't change; running
under the Python interpreter the app menu Quit item is still "Quit Python".
Possibly if the script were bundled by e.g. PyInstaller so the actual
executable is no longer the CPython interpreter, it might work. I don't
have enough interest to make that experiment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170328/c235b87e/attachment.html>


More information about the PyQt mailing list