summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/te
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-16 20:18:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-16 20:18:40 (GMT)
commit2168e9d602cffbb6975a11353707a921455c05f7 (patch)
tree4ea57b7032c9f1ed1751fe838623259d43b3f30c /Mac/Modules/te
parentb519638d1ee6715d4c262d804408041d4caf6b5a (diff)
downloadcpython-2168e9d602cffbb6975a11353707a921455c05f7.zip
cpython-2168e9d602cffbb6975a11353707a921455c05f7.tar.gz
cpython-2168e9d602cffbb6975a11353707a921455c05f7.tar.bz2
Adapted for Universal Headers 3.4
Diffstat (limited to 'Mac/Modules/te')
-rw-r--r--Mac/Modules/te/_TEmodule.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/Mac/Modules/te/_TEmodule.c b/Mac/Modules/te/_TEmodule.c
index 2f78e67..c545c8b 100644
--- a/Mac/Modules/te/_TEmodule.c
+++ b/Mac/Modules/te/_TEmodule.c
@@ -960,6 +960,31 @@ static PyObject *TE_TESetScrapHandle(PyObject *_self, PyObject *_args)
}
#endif
+static PyObject *TE_LMGetWordRedraw(PyObject *_self, PyObject *_args)
+{
+ PyObject *_res = NULL;
+ UInt8 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetWordRedraw();
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+}
+
+static PyObject *TE_LMSetWordRedraw(PyObject *_self, PyObject *_args)
+{
+ PyObject *_res = NULL;
+ UInt8 value;
+ if (!PyArg_ParseTuple(_args, "b",
+ &value))
+ return NULL;
+ LMSetWordRedraw(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+}
+
static PyObject *TE_as_TE(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
@@ -1001,6 +1026,10 @@ static PyMethodDef TE_methods[] = {
{"TESetScrapHandle", (PyCFunction)TE_TESetScrapHandle, 1,
"(Handle value) -> None"},
#endif
+ {"LMGetWordRedraw", (PyCFunction)TE_LMGetWordRedraw, 1,
+ "() -> (UInt8 _rv)"},
+ {"LMSetWordRedraw", (PyCFunction)TE_LMSetWordRedraw, 1,
+ "(UInt8 value) -> None"},
{"as_TE", (PyCFunction)TE_as_TE, 1,
"(Handle h) -> (TEHandle _rv)"},
{NULL, NULL, 0}