ContextMenuItem.newWithSubmenu

Creates a new #WebKitContextMenuItem using the given label with a submenu.

Parameters

label string

the menu item label text

submenu webkit.context_menu.ContextMenu

a #WebKitContextMenu to set

Return Value

Type: webkit.context_menu_item.ContextMenuItem

the newly created #WebKitContextMenuItem object.