Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8876
| Subject | Re: wx MenuItem - icon is missing |
|---|---|
| From | Philip Semanchuk <philip@semanchuk.com> |
| Date | 2011-07-05 19:33 -0400 |
| References | <4E12C505.3020300@shopzeus.com> <8B072395-5E0C-49C7-BBC4-38BAD25D0C05@semanchuk.com> <4E1366D5.6030208@shopzeus.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.667.1309908834.1164.python-list@python.org> (permalink) |
On Jul 5, 2011, at 3:32 PM, Laszlo Nagy wrote:
>
>> 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.
>
[code sample snipped]
>
> 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.
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 = 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 != 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: wx MenuItem - icon is missing Philip Semanchuk <philip@semanchuk.com> - 2011-07-05 19:33 -0400
csiph-web