I don't know if it is the "right" way, but in the past I have used the get_widget_by_action (from ItemFactory) to get the menu item widget and then connected a handler for the expose event.
The callback receives the widget as an argument and you can call set_sensitive at that point with a value derived from the current application state. hth, bc --- Luca Manini <[EMAIL PROTECTED]> wrote: > > Erik> After that you can change them whenever you need. > > I've seen a "expose" event that can be useful. > More interesting is the gobject.idle_add function. > The problem is that the callback is not called when the app GOES > idle, but WHILE it is IDLE (ok, may be it goes WORKING because of > the callback and then goes IDLE again...). > > Still searching.... > > -- > bye, Luca > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
