On May 24, 2008, at 1:00 PM, john wrote:
> File "/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/
> _core.py",
> line 10887, in AppendItem
> return _core_.Menu_AppendItem(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed
> at ../src/comm on/stockitem.cpp(166) in
> wxGetStockLabel():
> invalid stock item ID
I'm wondering if this is due to a change in dMenu.py. Could you try
replacing the _getItemType() method with the old version (below) and
trying it again?
def _getItemType(self, typ):
typ = str(typ).lower()[:3]
ret = NormalItemType
if self.Application:
# This is to work around a bug in Gtk
if self.Application.Platform != "GTK":
if typ in ("che", "chk"):
ret = CheckItemType
elif typ == "rad":
# Currently only implemented under
Windows and GTK,
# use #if wxHAS_RADIO_MENU_ITEMS to
test for
# availability of this feature.
ret = RadioItemType
return ret
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]