The previous wxPython code does show an icon in both cinnamon and gnome shell. This suggest that this may be a Unity issue and rather than a wxPython issue, but I don't really know what wxPython and PyQt4 are doing differently behind the scenes.
I am also running:
Ubuntu 12.04
Unity: 5.12-0ubuntu1
In my case, the PyQt4 code listed above does show an icon in Unity, but the following wxPython code does not:
import wx icons/gnome/ 32x32/apps/ accessories- calculator. png" "Application with Icon")
app = wx.App()
frame = wx.Frame(None)
icon_file = "/usr/share/
icon = wx.Icon(icon_file, wx.BITMAP_TYPE_PNG)
frame.SetIcon(icon)
frame.SetTitle(
frame.Show()
app.MainLoop()
The previous wxPython code does show an icon in both cinnamon and gnome shell. This suggest that this may be a Unity issue and rather than a wxPython issue, but I don't really know what wxPython and PyQt4 are doing differently behind the scenes.
I am also running:
Ubuntu 12.04
Unity: 5.12-0ubuntu1