问题
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