Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
496f8f63
Kaydet (Commit)
496f8f63
authored
Tem 19, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed remaining support for Tk versions below 4.0.
üst
9cc8a20c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
_tkinter.c
Modules/_tkinter.c
+7
-28
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
496f8f63
...
...
@@ -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