Comment 6 for bug 1007383

Revision history for this message
Gerard (gbrunick) wrote :

In my case, the PyQt4 code listed above does show an icon in Unity, but the following wxPython code does not:

import wx
app = wx.App()
frame = wx.Frame(None)
icon_file = "/usr/share/icons/gnome/32x32/apps/accessories-calculator.png"
icon = wx.Icon(icon_file, wx.BITMAP_TYPE_PNG)
frame.SetIcon(icon)
frame.SetTitle("Application with Icon")
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