Mercurial > cpython-lru_cache-weakref
diff Modules/_tkinter.c @ 3231:1acc04478dc3 legacy-trunk
Renamed module tkinter to _tkinter, moved source to _tkinter.c
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Mon, 23 Oct 1995 14:34:14 +0000 |
| parents | 2677fbb117d6 |
| children | f7fd85b32a7d |
line wrap: on
line diff
--- a/Modules/_tkinter.c Mon Oct 23 13:59:53 1995 +0000 +++ b/Modules/_tkinter.c Mon Oct 23 14:34:14 1995 +0000 @@ -1,4 +1,4 @@ -/* tkintermodule.c -- Interface to libtk.a and libtcl.a. +/* _tkinter.c -- Interface to libtk.a and libtcl.a. Copyright (C) 1994 Steen Lumholt */ #include "Python.h" @@ -11,7 +11,7 @@ #define WITH_APPINIT #endif -#define PyInit_tkinter inittkinter +#define PyInit__tkinter init_tkinter #include <tcl.h> #include <tk.h> @@ -1219,7 +1219,7 @@ } void -PyInit_tkinter () +PyInit__tkinter () { static inited = 0; @@ -1228,7 +1228,7 @@ #endif /* WITH_READLINE */ PyObject *m, *d, *v; - m = Py_InitModule ("tkinter", moduleMethods); + m = Py_InitModule ("_tkinter", moduleMethods); d = PyModule_GetDict (m); Tkinter_TclError = Py_BuildValue ("s", "TclError"); @@ -1270,7 +1270,7 @@ } if (PyErr_Occurred ()) - Py_FatalError ("can't initialize module tkinter"); + Py_FatalError ("can't initialize module _tkinter"); } #ifdef macintosh
