mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Setup.in: added tkinter; rearranged the definition of PYTHONPATH so
that the module-specific components are in the section for that module. cursesmodule.c: patched it so it actually works. tkintermodule.c: call Py_AtExit instead of atexit(). signalmodule.c: converted to new naming style; added BGN/END SAVE around pause() call. socketmodule.c: added setblocking() after Tommy Burnette.
This commit is contained in:
parent
a142613678
commit
e4485b064d
5 changed files with 252 additions and 202 deletions
|
@ -1033,6 +1033,8 @@ static PyTypeObject PyCursesPad_Type = {
|
|||
|
||||
/* -------------------------------------------------------*/
|
||||
|
||||
static PyObject *ModDict;
|
||||
|
||||
static PyObject *
|
||||
PyCurses_InitScr(self, args)
|
||||
PyObject * self;
|
||||
|
@ -1052,7 +1054,7 @@ PyCurses_InitScr(self, args)
|
|||
|
||||
/* This was moved from initcurses() because core dumped on SGI */
|
||||
#define SetDictChar(string,ch) \
|
||||
PyDict_SetItemString(d,string,PyInt_FromLong(ch));
|
||||
PyDict_SetItemString(ModDict,string,PyInt_FromLong(ch));
|
||||
|
||||
/* Here are some graphic symbols you can use */
|
||||
SetDictChar("ACS_ULCORNER",(ACS_ULCORNER));
|
||||
|
@ -1387,6 +1389,7 @@ initcurses()
|
|||
Py_INCREF(PyCurses_ERR);
|
||||
/* Add some symbolic constants to the module */
|
||||
d = PyModule_GetDict(m);
|
||||
ModDict = d; /* For PyCurses_InitScr */
|
||||
|
||||
/* Make the version available */
|
||||
PyDict_SetItemString(d,"version",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue