]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PopupMenu.py
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / demo / PopupMenu.py
index ce4775c94d2c2f6fc6eb3c4028190bd42be80de1..a1786bfdf6a58a1612ba681b24001b1557789114 100644 (file)
@@ -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")