X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/demo/PopupMenu.py?ds=sidebyside diff --git a/wxPython/demo/PopupMenu.py b/wxPython/demo/PopupMenu.py index ce4775c94d..a1786bfdf6 100644 --- a/wxPython/demo/PopupMenu.py +++ b/wxPython/demo/PopupMenu.py @@ -79,7 +79,8 @@ class TestPanel(wx.Panel): 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")