jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.06k stars 177 forks source link

Expose `nsstatusitem` #155

Closed AlexanderWillner closed 3 years ago

AlexanderWillner commented 3 years ago

In order to add own action handlers, e.g. by using self.app.nsstatusitem.setAction_('statusItemClicked:') to address issues like #51, imho we need access to nsstatusitem.

AlexanderWillner commented 3 years ago

Ah, will not work: "If the status item has a menu set, the action is not sent to the target when the status item is clicked; instead, the click causes the menu to appear."- appledev NSStatusItem.action