ELinks 0.18.0
menu.c File Reference
#include "scripting/python/pythoninc.h"
#include "elinks.h"
#include "bfu/menu.h"
#include "document/document.h"
#include "document/view.h"
#include "intl/libintl.h"
#include "scripting/python/core.h"
#include "scripting/python/menu.h"
#include "session/session.h"
#include "terminal/window.h"
#include "util/error.h"
#include "util/memlist.h"
#include "util/memory.h"
#include "util/string.h"
#include "viewer/text/view.h"
Include dependency graph for menu.c:

Functions

static void invoke_menu_callback (struct terminal *term, void *data, void *ses)
 
PyObject * python_menu (PyObject *self, PyObject *args, PyObject *kwargs)
 

Variables

char python_menu_doc []
 

Function Documentation

◆ invoke_menu_callback()

static void invoke_menu_callback ( struct terminal * term,
void * data,
void * ses )
static

◆ python_menu()

PyObject * python_menu ( PyObject * self,
PyObject * args,
PyObject * kwargs )

Variable Documentation

◆ python_menu_doc

char python_menu_doc[]
Initial value:
=
PYTHON_DOCSTRING("menu(items[, type]) -> None\n\
\n\
Display a menu.\n\
\n\
Arguments:\n\
\n\
items -- A sequence of tuples. Each tuple must have two elements: a\n\
string containing the name of a menu item, and a callable\n\
object that will be called without any arguments if the user\n\
selects that menu item.\n\
\n\
Optional arguments:\n\
\n\
type -- A constant specifying the type of menu to display. By default\n\
the menu is displayed at the top of the screen, but if this\n\
argument's value is the constant elinks.MENU_TAB then the menu\n\
is displayed in the same location as the ELinks tab menu. If\n\
its value is the constant elinks.MENU_LINK then the menu is\n\
displayed in the same location as the ELinks link menu and is\n\
not displayed unless a link is currently selected.\n")
#define PYTHON_DOCSTRING(str)
Definition core.h:46