On Wed, 14 Mar 2001 [EMAIL PROTECTED] wrote:

> The child in a GtkOptionMenu is a GtkMenu with some GtkMenuItems , but
> i want to set active a especific choice. i use gtk_menu.set_active(pos
> index) but this don´t work. Thanks

Either call the activate() method on the actual menu item, or use the
option_menu.set_history(index) method on the option menu (the first is
easier if you have a reference to the menu item, the second easier if you
have its index).

James.


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to