Re: Management of Gnome menu

Hi Jens

Unfortunately, I don't know how to get a reference to the menuitem widget once
the menu has been created using the UIINFO structures.  With python, I just have
access to a tuple and I don't know how to extract a menutiem reference from this

Thank you


Quoting Jens Finke <>:

> "Frédéric Gédin" wrote:
> > I started to play developing a Gnome application using python.
> > I would like to know how it is possible to activate to deactivate
> menus of a
> > gnome application.  I did not see anything on this in the
> documentation.
> Every gtk menuitem is especially a GtkWidget. So if you have a reference
> to a menu item you can write something like this (in C):
> GtkMenuItem *menu_item;
> ...
> gtk_widget_set_sensitive(GTK_WIDGET(menu_item), FALSE);
> But I think the python calls are similar. Hope this helps.
> Regards,
>     Jens

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]