wx.TaskBarIcon to display in the menu bar on OS X instead of the Dock.

Hello everyone,

I am trying to get the wx.TaskBarIcon to display in the menu bar on OS X instead of the Dock. I found this : http://stackoverflow.com/questions/145894/how-to-set-a-menubar-icon-on-mac-osx-using-wx but I can't figure out how to do this in python, could someone please help?

Thank you,
Gabriel

Hi Gabriel,

Hello everyone,

I am trying to get the wx.TaskBarIcon to display in the menu bar on
OS X
instead of the Dock. I found this :
macos - how to set a menubar icon on mac osx using wx - Stack Overflow
but I can't figure out how to do this in python, could someone
please help?

That post is misleading - it's talking about a patch that was never
applied to wxWidgets for whatever reason. Unpatched wxWidgets /
wxPython does not support this. If you want to have an icon display in
the menu bar, you'll have to write PyObjC code manipulating
NSStatusItems to do it.

Regards,

Kevin

···

On Aug 24, 2009, at 6:02 PM, Gabriel Rossetti wrote:

Thank you,
Gabriel

>

Is there any chance of this being added to wxPython in the foreseeable
future? Gabriel is not the only one who would like to do this.

Cheers,
-Ives

···

On Aug 25, 4:35 am, Kevin Ollivier <kevin-li...@theolliviers.com> wrote:

That post is misleading - it's talking about a patch that was never
applied to wxWidgets for whatever reason. Unpatched wxWidgets /
wxPython does not support this. If you want to have an icon display in
the menu bar, you'll have to write PyObjC code manipulating
NSStatusItems to do it.

There is almost always a chance. There will be a greater chance if somebody submits a patch that implements it and addresses whatever problems prevented the old patch from being applied.

···

On 9/26/09 6:00 AM, Ives wrote:

Is there any chance of this being added to wxPython in the foreseeable
future? Gabriel is not the only one who would like to do this.

--
Robin Dunn
Software Craftsman