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
a05d10d1
Commit
a05d10d1
authored
Jul 19, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed remaining support for Tk versions below 4.0.
parent
04be7552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
Modules/_tkinter.c
Modules/_tkinter.c
+7
-28
No files found.
Modules/_tkinter.c
View file @
a05d10d1
...
...
@@ -35,13 +35,14 @@ PERFORMANCE OF THIS SOFTWARE.
/* TCL/TK VERSION INFO:
Unix:
This should work with any version from Tcl 4.0 / Tck 7.4.
Do not use older versions.
Tcl/Tk 8.0 (even alpha or beta) or 7.6/4.2 are recommended.
This should work with any version from 7.4/4.0 upwards.
Tk 3.x is no longer supported.
Mac and Windows:
Use Tcl
4.1p1 / Tk 7.5p1 or possibly newer
.
It does not seem to work reliably with the original 4.1/7.5
release. (4.0/7.4 were never released for these platforms.)
Use Tcl
8.0 if available (even alpha or beta)
.
The oldest usable version is 4.1p1/7.5p1.
*/
#include "Python.h"
...
...
@@ -67,7 +68,7 @@ extern int tk_NumMainWindows;
#endif
#if TK_MAJOR_VERSION < 4
extern
struct
{
Tk_Window
win
;
}
*
tkMainWindowList
;
#error "Tk 3.x is not supported"
#endif
#ifdef macintosh
...
...
@@ -1462,19 +1463,6 @@ EventHook ()
}
#endif
/* WITH_READLINE */
static
void
Tkinter_Cleanup
()
{
/* This segfault with Tk 4.0 beta and seems unnecessary there as
* well */
#if TK_MAJOR_VERSION < 4
/* XXX rl_deprep_terminal is static, damned! */
while
(
tkMainWindowList
!=
0
)
Tk_DestroyWindow
(
tkMainWindowList
->
win
);
#endif
}
/* all errors will be checked in one fell swoop in init_tkinter() */
static
void
...
...
@@ -1506,8 +1494,6 @@ ins_string(d, name, val)
void
init_tkinter
()
{
static
inited
=
0
;
#ifdef WITH_READLINE
extern
int
(
*
rl_event_hook
)
();
#endif
/* WITH_READLINE */
...
...
@@ -1538,13 +1524,6 @@ init_tkinter ()
rl_event_hook
=
EventHook
;
#endif
/* WITH_READLINE */
if
(
!
inited
)
{
inited
=
1
;
if
(
Py_AtExit
(
Tkinter_Cleanup
)
!=
0
)
fprintf
(
stderr
,
"Tkinter: warning: cleanup procedure not registered
\n
"
);
}
if
(
PyErr_Occurred
())
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