2018-05-10 05:27:23 -03:00
|
|
|
/*[clinic input]
|
|
|
|
preserve
|
|
|
|
[clinic start generated code]*/
|
|
|
|
|
2022-08-11 18:25:49 -03:00
|
|
|
#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
|
|
|
|
# include "pycore_gc.h" // PyGC_Head
|
|
|
|
# include "pycore_runtime.h" // _Py_ID()
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2018-05-10 05:27:23 -03:00
|
|
|
PyDoc_STRVAR(_curses_panel_panel_bottom__doc__,
|
|
|
|
"bottom($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Push the panel to the bottom of the stack.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_BOTTOM_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"bottom", _PyCFunction_CAST(_curses_panel_panel_bottom), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_bottom__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_bottom_impl(PyCursesPanelObject *self, PyTypeObject *cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_bottom(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
2022-04-30 07:15:02 -03:00
|
|
|
if (nargs) {
|
|
|
|
PyErr_SetString(PyExc_TypeError, "bottom() takes no arguments");
|
|
|
|
return NULL;
|
2020-09-07 12:14:25 -03:00
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
return _curses_panel_panel_bottom_impl(self, cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_hide__doc__,
|
|
|
|
"hide($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Hide the panel.\n"
|
|
|
|
"\n"
|
|
|
|
"This does not delete the object, it just makes the window on screen invisible.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_HIDE_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"hide", _PyCFunction_CAST(_curses_panel_panel_hide), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_hide__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_hide_impl(PyCursesPanelObject *self, PyTypeObject *cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_hide(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
2022-04-30 07:15:02 -03:00
|
|
|
if (nargs) {
|
|
|
|
PyErr_SetString(PyExc_TypeError, "hide() takes no arguments");
|
|
|
|
return NULL;
|
2020-09-07 12:14:25 -03:00
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
return _curses_panel_panel_hide_impl(self, cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_show__doc__,
|
|
|
|
"show($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Display the panel (which might have been hidden).");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_SHOW_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"show", _PyCFunction_CAST(_curses_panel_panel_show), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_show__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_show_impl(PyCursesPanelObject *self, PyTypeObject *cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_show(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
2022-04-30 07:15:02 -03:00
|
|
|
if (nargs) {
|
|
|
|
PyErr_SetString(PyExc_TypeError, "show() takes no arguments");
|
|
|
|
return NULL;
|
2020-09-07 12:14:25 -03:00
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
return _curses_panel_panel_show_impl(self, cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_top__doc__,
|
|
|
|
"top($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Push panel to the top of the stack.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_TOP_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"top", _PyCFunction_CAST(_curses_panel_panel_top), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_top__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_top_impl(PyCursesPanelObject *self, PyTypeObject *cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_top(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
2022-04-30 07:15:02 -03:00
|
|
|
if (nargs) {
|
|
|
|
PyErr_SetString(PyExc_TypeError, "top() takes no arguments");
|
|
|
|
return NULL;
|
2020-09-07 12:14:25 -03:00
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
return _curses_panel_panel_top_impl(self, cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_above__doc__,
|
|
|
|
"above($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return the panel above the current panel.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_ABOVE_METHODDEF \
|
|
|
|
{"above", (PyCFunction)_curses_panel_panel_above, METH_NOARGS, _curses_panel_panel_above__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_above_impl(PyCursesPanelObject *self);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_above(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_panel_above_impl(self);
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_below__doc__,
|
|
|
|
"below($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return the panel below the current panel.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_BELOW_METHODDEF \
|
|
|
|
{"below", (PyCFunction)_curses_panel_panel_below, METH_NOARGS, _curses_panel_panel_below__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_below_impl(PyCursesPanelObject *self);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_below(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_panel_below_impl(self);
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_hidden__doc__,
|
|
|
|
"hidden($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return True if the panel is hidden (not visible), False otherwise.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_HIDDEN_METHODDEF \
|
|
|
|
{"hidden", (PyCFunction)_curses_panel_panel_hidden, METH_NOARGS, _curses_panel_panel_hidden__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_hidden_impl(PyCursesPanelObject *self);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_hidden(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_panel_hidden_impl(self);
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_move__doc__,
|
|
|
|
"move($self, y, x, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Move the panel to the screen coordinates (y, x).");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_MOVE_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"move", _PyCFunction_CAST(_curses_panel_panel_move), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_move__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_move_impl(PyCursesPanelObject *self, PyTypeObject *cls,
|
|
|
|
int y, int x);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_move(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
|
|
|
PyObject *return_value = NULL;
|
2022-08-13 07:09:40 -03:00
|
|
|
#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
|
|
|
|
# define KWTUPLE (PyObject *)&_Py_SINGLETON(tuple_empty)
|
|
|
|
#else
|
|
|
|
# define KWTUPLE NULL
|
|
|
|
#endif
|
2022-08-11 18:25:49 -03:00
|
|
|
|
2020-09-07 12:14:25 -03:00
|
|
|
static const char * const _keywords[] = {"", "", NULL};
|
2022-08-11 18:25:49 -03:00
|
|
|
static _PyArg_Parser _parser = {
|
|
|
|
.keywords = _keywords,
|
|
|
|
.fname = "move",
|
|
|
|
.kwtuple = KWTUPLE,
|
|
|
|
};
|
|
|
|
#undef KWTUPLE
|
2022-04-30 07:15:02 -03:00
|
|
|
PyObject *argsbuf[2];
|
2018-05-10 05:27:23 -03:00
|
|
|
int y;
|
|
|
|
int x;
|
|
|
|
|
2022-04-30 07:15:02 -03:00
|
|
|
args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 2, 2, 0, argsbuf);
|
|
|
|
if (!args) {
|
|
|
|
goto exit;
|
|
|
|
}
|
2023-08-24 19:51:22 -03:00
|
|
|
y = PyLong_AsInt(args[0]);
|
2022-04-30 07:15:02 -03:00
|
|
|
if (y == -1 && PyErr_Occurred()) {
|
|
|
|
goto exit;
|
|
|
|
}
|
2023-08-24 19:51:22 -03:00
|
|
|
x = PyLong_AsInt(args[1]);
|
2022-04-30 07:15:02 -03:00
|
|
|
if (x == -1 && PyErr_Occurred()) {
|
2019-01-11 10:01:14 -04:00
|
|
|
goto exit;
|
|
|
|
}
|
2020-09-07 12:14:25 -03:00
|
|
|
return_value = _curses_panel_panel_move_impl(self, cls, y, x);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
exit:
|
|
|
|
return return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_window__doc__,
|
|
|
|
"window($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return the window object associated with the panel.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_WINDOW_METHODDEF \
|
|
|
|
{"window", (PyCFunction)_curses_panel_panel_window, METH_NOARGS, _curses_panel_panel_window__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_window_impl(PyCursesPanelObject *self);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_window(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_panel_window_impl(self);
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_replace__doc__,
|
|
|
|
"replace($self, win, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Change the window associated with the panel to the window win.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_REPLACE_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"replace", _PyCFunction_CAST(_curses_panel_panel_replace), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_replace__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_replace_impl(PyCursesPanelObject *self,
|
2020-09-07 12:14:25 -03:00
|
|
|
PyTypeObject *cls,
|
2018-05-10 05:27:23 -03:00
|
|
|
PyCursesWindowObject *win);
|
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_replace(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
|
|
|
PyObject *return_value = NULL;
|
2022-08-13 07:09:40 -03:00
|
|
|
#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
|
|
|
|
# define KWTUPLE (PyObject *)&_Py_SINGLETON(tuple_empty)
|
|
|
|
#else
|
|
|
|
# define KWTUPLE NULL
|
|
|
|
#endif
|
2022-08-11 18:25:49 -03:00
|
|
|
|
2020-09-07 12:14:25 -03:00
|
|
|
static const char * const _keywords[] = {"", NULL};
|
2022-08-11 18:25:49 -03:00
|
|
|
static _PyArg_Parser _parser = {
|
|
|
|
.keywords = _keywords,
|
|
|
|
.fname = "replace",
|
|
|
|
.kwtuple = KWTUPLE,
|
|
|
|
};
|
|
|
|
#undef KWTUPLE
|
2022-04-30 07:15:02 -03:00
|
|
|
PyObject *argsbuf[1];
|
2018-05-10 05:27:23 -03:00
|
|
|
PyCursesWindowObject *win;
|
|
|
|
|
2022-04-30 07:15:02 -03:00
|
|
|
args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
|
|
|
|
if (!args) {
|
|
|
|
goto exit;
|
|
|
|
}
|
|
|
|
if (!PyObject_TypeCheck(args[0], &PyCursesWindow_Type)) {
|
|
|
|
_PyArg_BadArgument("replace", "argument 1", (&PyCursesWindow_Type)->tp_name, args[0]);
|
2018-05-10 05:27:23 -03:00
|
|
|
goto exit;
|
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
win = (PyCursesWindowObject *)args[0];
|
2020-09-07 12:14:25 -03:00
|
|
|
return_value = _curses_panel_panel_replace_impl(self, cls, win);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
exit:
|
|
|
|
return return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_set_userptr__doc__,
|
|
|
|
"set_userptr($self, obj, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
2019-02-24 19:18:48 -04:00
|
|
|
"Set the panel\'s user pointer to obj.");
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_SET_USERPTR_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"set_userptr", _PyCFunction_CAST(_curses_panel_panel_set_userptr), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_set_userptr__doc__},
|
2020-09-07 12:14:25 -03:00
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_set_userptr_impl(PyCursesPanelObject *self,
|
|
|
|
PyTypeObject *cls, PyObject *obj);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_panel_set_userptr(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
|
|
|
{
|
|
|
|
PyObject *return_value = NULL;
|
2022-08-13 07:09:40 -03:00
|
|
|
#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
|
|
|
|
# define KWTUPLE (PyObject *)&_Py_SINGLETON(tuple_empty)
|
|
|
|
#else
|
|
|
|
# define KWTUPLE NULL
|
|
|
|
#endif
|
2022-08-11 18:25:49 -03:00
|
|
|
|
2020-09-07 12:14:25 -03:00
|
|
|
static const char * const _keywords[] = {"", NULL};
|
2022-08-11 18:25:49 -03:00
|
|
|
static _PyArg_Parser _parser = {
|
|
|
|
.keywords = _keywords,
|
|
|
|
.fname = "set_userptr",
|
|
|
|
.kwtuple = KWTUPLE,
|
|
|
|
};
|
|
|
|
#undef KWTUPLE
|
2022-04-30 07:15:02 -03:00
|
|
|
PyObject *argsbuf[1];
|
2020-09-07 12:14:25 -03:00
|
|
|
PyObject *obj;
|
|
|
|
|
2022-04-30 07:15:02 -03:00
|
|
|
args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
|
|
|
|
if (!args) {
|
2020-09-07 12:14:25 -03:00
|
|
|
goto exit;
|
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
obj = args[0];
|
2020-09-07 12:14:25 -03:00
|
|
|
return_value = _curses_panel_panel_set_userptr_impl(self, cls, obj);
|
|
|
|
|
|
|
|
exit:
|
|
|
|
return return_value;
|
|
|
|
}
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_panel_userptr__doc__,
|
|
|
|
"userptr($self, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return the user pointer for the panel.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_PANEL_USERPTR_METHODDEF \
|
2022-05-03 15:25:41 -03:00
|
|
|
{"userptr", _PyCFunction_CAST(_curses_panel_panel_userptr), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_userptr__doc__},
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_userptr_impl(PyCursesPanelObject *self,
|
|
|
|
PyTypeObject *cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
static PyObject *
|
2020-09-07 12:14:25 -03:00
|
|
|
_curses_panel_panel_userptr(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
2018-05-10 05:27:23 -03:00
|
|
|
{
|
2022-04-30 07:15:02 -03:00
|
|
|
if (nargs) {
|
|
|
|
PyErr_SetString(PyExc_TypeError, "userptr() takes no arguments");
|
|
|
|
return NULL;
|
2020-09-07 12:14:25 -03:00
|
|
|
}
|
2022-04-30 07:15:02 -03:00
|
|
|
return _curses_panel_panel_userptr_impl(self, cls);
|
2018-05-10 05:27:23 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_bottom_panel__doc__,
|
|
|
|
"bottom_panel($module, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return the bottom panel in the panel stack.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_BOTTOM_PANEL_METHODDEF \
|
|
|
|
{"bottom_panel", (PyCFunction)_curses_panel_bottom_panel, METH_NOARGS, _curses_panel_bottom_panel__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_bottom_panel_impl(PyObject *module);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_bottom_panel(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_bottom_panel_impl(module);
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_new_panel__doc__,
|
|
|
|
"new_panel($module, win, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return a panel object, associating it with the given window win.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_NEW_PANEL_METHODDEF \
|
|
|
|
{"new_panel", (PyCFunction)_curses_panel_new_panel, METH_O, _curses_panel_new_panel__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_new_panel_impl(PyObject *module, PyCursesWindowObject *win);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_new_panel(PyObject *module, PyObject *arg)
|
|
|
|
{
|
|
|
|
PyObject *return_value = NULL;
|
|
|
|
PyCursesWindowObject *win;
|
|
|
|
|
2018-12-25 07:23:47 -04:00
|
|
|
if (!PyObject_TypeCheck(arg, &PyCursesWindow_Type)) {
|
2019-08-29 11:49:08 -03:00
|
|
|
_PyArg_BadArgument("new_panel", "argument", (&PyCursesWindow_Type)->tp_name, arg);
|
2018-05-10 05:27:23 -03:00
|
|
|
goto exit;
|
|
|
|
}
|
2018-12-25 07:23:47 -04:00
|
|
|
win = (PyCursesWindowObject *)arg;
|
2018-05-10 05:27:23 -03:00
|
|
|
return_value = _curses_panel_new_panel_impl(module, win);
|
|
|
|
|
|
|
|
exit:
|
|
|
|
return return_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_top_panel__doc__,
|
|
|
|
"top_panel($module, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return the top panel in the panel stack.");
|
|
|
|
|
|
|
|
#define _CURSES_PANEL_TOP_PANEL_METHODDEF \
|
|
|
|
{"top_panel", (PyCFunction)_curses_panel_top_panel, METH_NOARGS, _curses_panel_top_panel__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_top_panel_impl(PyObject *module);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_top_panel(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_top_panel_impl(module);
|
|
|
|
}
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_curses_panel_update_panels__doc__,
|
|
|
|
"update_panels($module, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Updates the virtual screen after changes in the panel stack.\n"
|
|
|
|
"\n"
|
2019-02-24 19:18:48 -04:00
|
|
|
"This does not call curses.doupdate(), so you\'ll have to do this yourself.");
|
2018-05-10 05:27:23 -03:00
|
|
|
|
|
|
|
#define _CURSES_PANEL_UPDATE_PANELS_METHODDEF \
|
|
|
|
{"update_panels", (PyCFunction)_curses_panel_update_panels, METH_NOARGS, _curses_panel_update_panels__doc__},
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_update_panels_impl(PyObject *module);
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_curses_panel_update_panels(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|
|
|
{
|
|
|
|
return _curses_panel_update_panels_impl(module);
|
|
|
|
}
|
2023-08-24 19:51:22 -03:00
|
|
|
/*[clinic end generated code: output=cb76cb1d5040f387 input=a9049054013a1b77]*/
|