Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
08b373f8
Commit
08b373f8
authored
Oct 23, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed module tkinter to _tkinter, moved source to _tkinter.c
parent
de367af4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Modules/Setup.in
Modules/Setup.in
+2
-2
Modules/_tkinter.c
Modules/_tkinter.c
+5
-5
No files found.
Modules/Setup.in
View file @
08b373f8
...
...
@@ -235,8 +235,8 @@ md5 md5module.c md5c.c
# See the section "The Tk interface" in ../README for more info.
# *** 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 tkintermodule
.c tkappinit.c -DWITH_APPINIT -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 _tkinter
.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
# *** ALWAYS use this line as well ***
#TKPATH=:$(DESTLIB)/tkinter
...
...
Modules/_tkinter.c
View file @
08b373f8
/*
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 init
tkinter
#define PyInit_
_tkinter init_
tkinter
#include <tcl.h>
#include <tk.h>
...
...
@@ -1219,7 +1219,7 @@ Tkinter_Cleanup ()
}
void
PyInit_tkinter
()
PyInit_
_
tkinter
()
{
static
inited
=
0
;
...
...
@@ -1228,7 +1228,7 @@ PyInit_tkinter ()
#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 @@ PyInit_tkinter ()
}
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module tkinter"
);
Py_FatalError
(
"can't initialize module
_
tkinter"
);
}
#ifdef macintosh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment