ELinks 0.16.1.1
dialogs.c File Reference
#include "scripting/python/pythoninc.h"
#include "elinks.h"
#include "bfu/inpfield.h"
#include "bfu/msgbox.h"
#include "intl/libintl.h"
#include "scripting/python/core.h"
#include "scripting/python/dialogs.h"
#include "session/session.h"
#include "util/error.h"
#include "util/memlist.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for dialogs.c:

Data Structures

struct  python_input_callback_hop

Functions

PyObject * python_info_box (PyObject *self, PyObject *args, PyObject *kwargs)
static void invoke_input_ok_callback (void *data, char *text)
static void invoke_input_cancel_callback (void *data)
PyObject * python_input_box (PyObject *self, PyObject *args, PyObject *kwargs)

Variables

char python_info_box_doc []
char python_input_box_doc []

Function Documentation

◆ invoke_input_cancel_callback()

void invoke_input_cancel_callback ( void * data)
static

◆ invoke_input_ok_callback()

void invoke_input_ok_callback ( void * data,
char * text )
static

◆ python_info_box()

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

◆ python_input_box()

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

Variable Documentation

◆ python_info_box_doc

char python_info_box_doc[]
Initial value:
=
PYTHON_DOCSTRING("info_box(text[, title]) -> None\n\
\n\
Display information to the user in a dialog box.\n\
\n\
Arguments:\n\
\n\
text -- The text to be displayed in the dialog box. This argument can\n\
be a string or any object that has a string representation as\n\
returned by str(object).\n\
\n\
Optional arguments:\n\
\n\
title -- A string containing a title for the dialog box. By default\n\
the string \"Info\" is used.\n")
#define PYTHON_DOCSTRING(str)
Definition core.h:46

◆ python_input_box_doc

char python_input_box_doc[]
Initial value:
=
"input_box(prompt, callback, title=\"User dialog\", initial=\"\") -> None\n\
\n\
Display a dialog box to prompt for user input.\n\
\n\
Arguments:\n\
\n\
prompt -- A string containing a prompt for the dialog box.\n\
callback -- A callable object to be called after the dialog is\n\
finished. It will be called with a single argument, which\n\
will be either a string provided by the user or else None\n\
if the user canceled the dialog.\n\
\n\
Optional keyword arguments:\n\
\n\
title -- A string containing a title for the dialog box. By default\n\
the string \"User dialog\" is used.\n\
initial -- A string containing an initial value for the text entry\n\
field. By default the entry field is initially empty.\n")