mirror of https://github.com/python/cpython.git
Renamed module tkinter to _tkinter, moved source to _tkinter.c
This commit is contained in:
parent
9715779810
commit
ba0311ecff
|
@ -235,8 +235,8 @@ md5 md5module.c md5c.c
|
||||||
# See the section "The Tk interface" in ../README for more info.
|
# See the section "The Tk interface" in ../README for more info.
|
||||||
|
|
||||||
# *** Use ONE of the following two lines, see previous comments ***
|
# *** Use ONE of the following two lines, see previous comments ***
|
||||||
#tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
|
#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
|
||||||
#tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
|
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
|
||||||
|
|
||||||
# *** ALWAYS use this line as well ***
|
# *** ALWAYS use this line as well ***
|
||||||
#TKPATH=:$(DESTLIB)/tkinter
|
#TKPATH=:$(DESTLIB)/tkinter
|
||||||
|
|
|
@ -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 */
|
Copyright (C) 1994 Steen Lumholt */
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
#define WITH_APPINIT
|
#define WITH_APPINIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PyInit_tkinter inittkinter
|
#define PyInit__tkinter init_tkinter
|
||||||
|
|
||||||
#include <tcl.h>
|
#include <tcl.h>
|
||||||
#include <tk.h>
|
#include <tk.h>
|
||||||
|
@ -1219,7 +1219,7 @@ Tkinter_Cleanup ()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PyInit_tkinter ()
|
PyInit__tkinter ()
|
||||||
{
|
{
|
||||||
static inited = 0;
|
static inited = 0;
|
||||||
|
|
||||||
|
@ -1228,7 +1228,7 @@ PyInit_tkinter ()
|
||||||
#endif /* WITH_READLINE */
|
#endif /* WITH_READLINE */
|
||||||
PyObject *m, *d, *v;
|
PyObject *m, *d, *v;
|
||||||
|
|
||||||
m = Py_InitModule ("tkinter", moduleMethods);
|
m = Py_InitModule ("_tkinter", moduleMethods);
|
||||||
|
|
||||||
d = PyModule_GetDict (m);
|
d = PyModule_GetDict (m);
|
||||||
Tkinter_TclError = Py_BuildValue ("s", "TclError");
|
Tkinter_TclError = Py_BuildValue ("s", "TclError");
|
||||||
|
@ -1270,7 +1270,7 @@ PyInit_tkinter ()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PyErr_Occurred ())
|
if (PyErr_Occurred ())
|
||||||
Py_FatalError ("can't initialize module tkinter");
|
Py_FatalError ("can't initialize module _tkinter");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef macintosh
|
#ifdef macintosh
|
||||||
|
|
Loading…
Reference in New Issue