Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'ubuntu': 0.04; 'subject:missing': 0.07; 'calculator': 0.09; 'demonstrates': 0.09; 'exception.': 0.09; 'c++': 0.12; 'wrote:': 0.15; '46,': 0.16; '9.04': 0.16; '__init__': 0.16; 'assertion': 0.16; 'dummy': 0.16; 'received:mindspring.com': 0.16; 'skip:" 100': 0.16; 'skip:/ 50': 0.16; 'x-mailer:apple mail (2.1084)': 0.16; 'pm,': 0.16; '(most': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; 'item.': 0.23; 'cheers': 0.23; 'traceback': 0.25; 'problem': 0.29; 'example': 0.30; 'error': 0.31; 'to:addr:python-list': 0.34; 'received:24': 0.34; 'there': 0.34; 'post': 0.34; 'test': 0.34; 'app': 0.35; 'icon': 0.35; 'last):': 0.35; 'ourselves': 0.35; 'charset:us-ascii': 0.36; 'file': 0.36; 'subject:: ': 0.38; 'menu': 0.38; 'should': 0.39; 'header:Mime-Version:1': 0.39; 'under': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'hope': 0.60; 'your': 0.60; 'header:Message-Id:1': 0.61; 'results': 0.62; 'you.': 0.62; 'click': 0.79; '10.6': 0.84; 'popup': 0.84; 'received:69.73': 0.84; 'something.': 0.91 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: wx MenuItem - icon is missing From: Philip Semanchuk In-Reply-To: <4E1366D5.6030208@shopzeus.com> Date: Tue, 5 Jul 2011 19:33:47 -0400 Content-Transfer-Encoding: quoted-printable References: <4E12C505.3020300@shopzeus.com> <8B072395-5E0C-49C7-BBC4-38BAD25D0C05@semanchuk.com> <4E1366D5.6030208@shopzeus.com> To: Lista-Comp-Lang-Python list X-Mailer: Apple Mail (2.1084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - deimos.nocdirect.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - semanchuk.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1309908834 news.xs4all.nl 21863 [2001:888:2000:d::a6]:33424 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8876 On Jul 5, 2011, at 3:32 PM, Laszlo Nagy wrote: >=20 >> 1. Post a complete example that demonstrates the problem so that we = don't have to dummy up a wx app ourselves to try your code. >=20 [code sample snipped] >=20 > Under windows, this displays the icon for the popup menu item. Under = GTK it doesn't and there is no error message, no exception. I get different results than you.=20 Under Ubuntu 9.04 w with wx 2.8.9.1, when I right click I see a menu = item called test with little icon of a calculator or something. Under OS X 10.6 with wx 2.8.12.0 and Win XP with wx 2.8.10.1, when I = right click I get this -- Traceback (most recent call last): File "x.py", line 46, in onPopupMenu item =3D wx.MenuItem(None,-1,u"Test") File = "/usr/local/lib/wxPython-unicode-2.8.12.0/lib/python2.6/site-packages/wx-2= .8-mac-unicode/wx/_core.py", line 11481, in __init__ _core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs)) wx._core.PyAssertionError: C++ assertion "parentMenu !=3D NULL" failed = at /BUILD/wxPython-src-2.8.12.0/src/common/menucmn.cpp(389) in = wxMenuItemBase(): menuitem should have a menu Hope this helps more than it confuses. Cheers Philip