wx.adv.TaskBarIcon functionality broken in Phoenix

*** copied & pasted from taskbaricon.py ***

import icon

import wx

import wx.adv

class TaskBarIcon(wx.adv.TaskBarIcon):

“”"

Create a task bar icon to be available in the system’s tray.

“”"

def init(self, parent):

“”"

Set the icon and bind events to it.

“”"

wx.adv.TaskBarIcon.init(self)

self.parent = parent

self.taskBarIcon = icon.image()

self.SetIcon(self.taskBarIcon)

self.Bind(event=wx.EVT_MENU,

handler=self.OnExit,

id=wx.ID_EXIT)

def CreatePopupMenu(self):

“”"

Create a pop-up menu and append menu items to it.

“”"

self.popUpMenu = wx.Menu()

self.popUpMenu.Append(text="&Exit\tCtrl+E",

id=wx.ID_EXIT)

return self.popUpMenu

def OnExit(self, event):

“”"

Close the top-level window, thus exit the program.

“”"

self.parent.Close()

···

Note: The icon module was made by img2py.