Re: Management of Gnome menu



"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]