X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/726fc00ab9a45ac4acbd7622e4dcb877b96fe8cb..3dc0174140ffc52a08fd5b64cf839babad09e5cf:/wxPython/demo/wxListCtrl.py diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py index 7e510dc04f..bce9073e98 100644 --- a/wxPython/demo/wxListCtrl.py +++ b/wxPython/demo/wxListCtrl.py @@ -255,9 +255,12 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin): tPopupID3 = 2 tPopupID4 = 3 tPopupID5 = 5 - #menu.Append(tPopupID1, "One") + + # Show how to put an icon in the menu item = wxMenuItem(menu, tPopupID1,"One") - item.SetBitmap(images.getSmilesBitmap()) + if wxPlatform == '__WXMSW__': + item.SetBitmap(images.getSmilesBitmap()) + menu.AppendItem(item) menu.Append(tPopupID2, "Two") menu.Append(tPopupID3, "Three")