projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[1001483] Added wxPasswordEntryDialog analagous to wxTextEntryDialog, allows detectin...
[wxWidgets.git]
/
wxPython
/
demo
/
PopupMenu.py
diff --git
a/wxPython/demo/PopupMenu.py
b/wxPython/demo/PopupMenu.py
index ce4775c94d2c2f6fc6eb3c4028190bd42be80de1..a1786bfdf6a58a1612ba681b24001b1557789114 100644
(file)
--- 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")
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")