]> git.saurik.com Git - wxWidgets.git/commitdiff
little tweak
authorRobin Dunn <robin@alldunn.com>
Mon, 2 Aug 2004 22:01:02 +0000 (22:01 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 2 Aug 2004 22:01:02 +0000 (22:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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")