little tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user