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
ba0311ec
Kaydet (Commit)
ba0311ec
authored
Eki 23, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renamed module tkinter to _tkinter, moved source to _tkinter.c
üst
97157798
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Setup.in
Modules/Setup.in
+2
-2
_tkinter.c
Modules/_tkinter.c
+5
-5
No files found.
Modules/Setup.in
Dosyayı görüntüle @
ba0311ec
...
@@ -235,8 +235,8 @@ md5 md5module.c md5c.c
...
@@ -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
...
...
Modules/_tkinter.c
Dosyayı görüntüle @
ba0311ec
/*
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 @@
...
@@ -11,7 +11,7 @@
#define WITH_APPINIT
#define WITH_APPINIT
#endif
#endif
#define PyInit_
tkinter init
tkinter
#define PyInit_
_tkinter init_
tkinter
#include <tcl.h>
#include <tcl.h>
#include <tk.h>
#include <tk.h>
...
@@ -1219,7 +1219,7 @@ Tkinter_Cleanup ()
...
@@ -1219,7 +1219,7 @@ Tkinter_Cleanup ()
}
}
void
void
PyInit_tkinter
()
PyInit_
_
tkinter
()
{
{
static
inited
=
0
;
static
inited
=
0
;
...
@@ -1228,7 +1228,7 @@ PyInit_tkinter ()
...
@@ -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 ()
...
@@ -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
...
...
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