None leaveok(int) int=0 or int=1
None scrollok(int) int=0 or int=1
None setscrreg(top,bottom)
-None keypad(int) int=0 or int=1
+None keypad(int) int=0 or int=1
None nodelay(int) int=0 or int=1
None notimeout(int) int=0 or int=1
******************************************************************/
******************************************************************/
-char *PyCursesVersion = "1.1";
+char *PyCursesVersion = "1.2";
/*
* Check the return code from a curses function and return None
void
initcurses()
{
- PyObject *m, *d;
+ PyObject *m, *d, *v;
/* Create the module and add the functions */
m = Py_InitModule("curses", PyCurses_methods);
PyDict_SetItemString(d, "error", PyCursesError);
/* Make the version available */
- PyDict_SetItemString(d,"version", PyString_FromString(PyCursesVersion));
+ v = PyString_FromString(PyCursesVersion);
+ PyDict_SetItemString(d, "version", v);
+ PyDict_SetItemString(d, "__version__", v);
+ Py_DECREF(v);
/* Here are some attributes you can add to chars to print */
SetDictInt("A_NORMAL", A_NORMAL);