How do I find out which is the selected item in a GtkOptionMenu?
The optionmenu is an evil widget, make no mistake. By using it you will see the `magic’ it uses to appear to be a simple listbox (make no mistake!) Note these important, err, `aspects’ of it: • The OptionMenu is a container that holds a label, and that responds to clicks by presenting a menu. It is NOT a menu! • The OptionMenu’s `menu’ property gives access to its menu – it may be None when there is no menu associated (in that case, you can create a new GtkMenu and use optionmenu.set_menu(menu)). The menu is a regular menu and contains GtkMenuItems. • The selected GtkMenuItem contains no label – its label is reparented to the GtkOptionMenu itself. The label (or nothing) will be the only child the optionmenu has.