From 6a51839ca252a993fee42c9e1b7c7079e74d652e Mon Sep 17 00:00:00 2001 From: Jeff Armstrong Date: Fri, 22 Jul 2011 19:05:15 -0400 Subject: Various fixes to get the example running. --- lib/gem.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/gem.c') diff --git a/lib/gem.c b/lib/gem.c index d06f65b..9ffe5aa 100644 --- a/lib/gem.c +++ b/lib/gem.c @@ -45,9 +45,10 @@ GemMethods[] = { {"wind_delete", py_wind_delete, METH_VARARGS, "Delete a window (after closing...)"}, {"wind_close", py_wind_close, METH_VARARGS, "Close a window"}, {"wind_set", py_wind_set, METH_VARARGS, "Set a window parameter"}, + {"wind_set_string", py_wind_set_string, METH_VARARGS, "Set a string window parameter"}, {"wind_update", py_wind_update, METH_VARARGS, "Lock window redraw for updates"}, - {"evnt_multi", py_evnt_multi, METH_VARARGS, "Process multiple GEM events."}, + {"evnt_multi", py_evnt_multi, METH_VARARGS | METH_KEYWORDS, "Process multiple GEM events."}, {NULL,NULL,0,NULL} }; @@ -111,6 +112,7 @@ PROC LibFunc[] = { "py_wind_close", "Internal\n", py_wind_close, "py_wind_update", "Internal\n", py_wind_update, "py_wind_set", "Internal\n", py_wind_set, + "py_wind_set_string", "Internal\n", py_wind_set_string, /* AES Event Library */ "py_evnt_multi", "Internal\n", py_evnt_multi, @@ -119,7 +121,7 @@ PROC LibFunc[] = { }; LDGLIB LibLdg[] = { - 0x0001, 22, LibFunc, "GEM Extensions for Python", 0 + 0x0001, 23, LibFunc, "GEM Extensions for Python", 0 }; int main( void) -- cgit v1.2.3