wx.TaskBarIcon in Ubuntu 13.04 (GNOME or Unity)

 ̄綄美尐妖づ 提交于 2020-01-02 08:43:44

问题


I've used wx.TaskBarIcon to successfully implement a systray interface to my application on Windows and Mac but am having severe trouble with it on Ubuntu.

There's already been two SO questions regarding this on previous versions of Ubuntu:

  • wxTaskBarIcon in Ubuntu 12.10
  • wx.TaskBarIcon on Ubuntu 11.04

Neither provide real answers or workarounds.

As I understand it, the systray whitelist was implemented and was subsequently obsoleted, which apparently leaves wxWidgets and wxPython applications completely unable to display a system tray.

The Ubuntu forums hint at the fact that I need to code up an 'AppIndicator'. How can this possibly work with wxPython?

Update

It was clear that wxWidgets was never going to work with Unity.

I tried GNOME. Below are the results:

The presentation is just awful: the icon was floating in the middle of nowhere. However, when it is clicked, the context menu does come up as it should.

来源:https://stackoverflow.com/questions/19793890/wx-taskbaricon-in-ubuntu-13-04-gnome-or-unity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!