xml menu pygtk

Seb sebastianthegreatful at gmail.com
Sat May 16 15:51:31 CEST 2009

I'm trying to construct a menu from an xml file. However my recursive
algorithm isn't doing what I want it too. I've been starring at this
for too long. Any help appreciated :)

I get the following error but the problem is more of a logical nature.
./gnomeAppletMenu.py:40: GtkWarning: gtk_menu_shell_insert: assertion
`GTK_IS_MENU_ITEM (child)' failed

I'm pretty sure I fuck up around line 27-30

xml file:

python code:

best regards,

More information about the Python-list mailing list