git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28590
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
menu = wx.Menu()
# Show how to put an icon in the menu
item = wx.MenuItem(menu, self.popupID1,"One")
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")
menu.AppendItem(item)
# add some other items
menu.Append(self.popupID2, "Two")