I have a GtkOptionMenu named 'logging'.  I'd really rather populate it
inside glade, since the menu is static, but I can't figure out how to
get a notification out of GtkOptionMenu that its menu has changed.  So
I'm doing the following.  Is the following code a necessary ideom or
am I doing something wrong?

logmenu = widgets['logging'].get_menu()
item = GtkMenuItem ('No Logging')
item.connect ("activate", on_logging_off)
item.show()
logmenu.append (item)
item = GtkMenuItem ('Logging')
item.connect ("activate", on_logging_on)
item.show()
logmenu.append (item)
item = GtkMenuItem ('Log playback')
item.connect ("activate", on_logging_playback)
item.show()
logmenu.append (item)
widgets['logging'].set_history(0)

-- 
-russ nelson              http://russnelson.com | Crypto without a threat
Crynwr sells support for free software  | PGPok | model is like cookies
521 Pleasant Valley Rd. | +1 315 268 1925 voice | without milk.
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to