Set takeFocus property.
A boolean that determines whether the menu and its submenus grab the keyboard focus. See gtk.menu_shell.MenuShell.setTakeFocus and gtk.menu_shell.MenuShell.getTakeFocus.
Set takeFocus property.