Wednesday 15 August 2012

How to create menu item in OSX Menubar using Pyinstaller packaged Kivy Python application? -



How to create menu item in OSX Menubar using Pyinstaller packaged Kivy Python application? -

to accomplish sense of nativeness in pyinstaller packaged kivy python application, create menu item in osx menu bar. if using pyqt, can accomplish this. using kivy, seems have resort other ways.

any suggestion? guess in range of pyobjc or applescript. not sure though.

i guess more pyinstaller question kivy question.

it's neither :)

pyinstaller wraps python application native-looking os x application bundle. since kivy doesn't have ability create menu bar icon in os x, have stick pyobjc.

first, you've got install xcode (if not installed yet). can download app store or apple's developer center.

then install pyobjc itself:

pip install pyobjc

there examples (first, another) on creating status bar icon using pyobjc.

there's awesome library called rumps simplifies code needed create status bar icons, menus , actions. perhaps may help status bar interacting.

python osx kivy pyinstaller

No comments:

Post a Comment