menu = wx.Menu()
# Show how to put an icon in the menu
item = wx.MenuItem(menu, self.popupID1,"One")
- item.SetBitmap(images.getSmilesBitmap())
+ bmp = images.getSmilesBitmap()
+ item.SetBitmap(bmp)
menu.AppendItem(item)
# add some other items
menu.Append(self.popupID2, "Two")
# Popup the menu. If an item is selected then its handler
# will be called before PopupMenu returns.
- self.PopupMenu(menu, event.GetPosition())
+ self.PopupMenu(menu)
menu.Destroy()