Add the curses constants ERR and OK to the module at TG's suggestion

This commit is contained in:
Andrew M. Kuchling 2000-12-26 15:57:01 +00:00
parent 1dea760ca1
commit caefb37ee1
1 changed files with 3 additions and 0 deletions

View File

@ -2464,6 +2464,9 @@ init_curses(void)
PyDict_SetItemString(d, "__version__", v);
Py_DECREF(v);
SetDictInt("ERR", ERR);
SetDictInt("OK", OK);
/* Here are some attributes you can add to chars to print */
SetDictInt("A_ATTRIBUTES", A_ATTRIBUTES);