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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1007383

Title:
  Unity does not honour window icons where there is no .desktop file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/bamf/+bug/1007383/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to