简体   繁体   中英

How to hide a PyQt application's icon from Mac OS X dock

如何制作PyQt应用程序(用户仅通过系统托盘 (在菜单栏中)与之交互)将自己隐藏在Mac OS X基座中?

This is what you are looking for: http://uselessthingies.wordpress.com/2008/05/18/an-app-without-dock-icon-and-menu-bar/

tl;dr: Package(py2app/pyinstaller(recommended)) your app; in your app's Info.plist add <key>LSUIElement</key><string>1</string> .

If use py2app to package your application. Set plist option like this:

OPTIONS = {
              ...
              'plist': {'LSUIElement': True},
              ...
          }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM