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
34cc5c31
Kaydet (Commit)
34cc5c31
authored
Eki 31, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix to load needed resources on a mac
üst
81299f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
_tkinter.c
Modules/_tkinter.c
+40
-0
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
34cc5c31
...
...
@@ -5,6 +5,10 @@
#ifdef macintosh
#define MAC_TCL
#include <CodeFragments.h>
static
int
loaded_from_shlib
=
0
;
static
FSSpec
library_fss
;
#endif
#ifdef MAC_TCL
...
...
@@ -1271,6 +1275,9 @@ PyInit__tkinter ()
if
(
PyErr_Occurred
())
Py_FatalError
(
"can't initialize module _tkinter"
);
#ifdef macintosh
mac_addlibresources
();
#endif
}
#ifdef macintosh
...
...
@@ -1289,4 +1296,37 @@ panic(char * format, ...)
Py_FatalError
(
"Tcl/Tk panic"
);
}
/*
** If this module is dynamically loaded the following routine should
** be the init routine. It takes care of adding the shared library to
** the resource-file chain, so that the tk routines can find their
** resources.
*/
OSErr
pascal
init_tkinter_shlib
(
InitBlockPtr
data
)
{
if
(
data
==
nil
)
return
noErr
;
if
(
data
->
fragLocator
.
where
==
kOnDiskFlat
)
{
library_fss
=
*
data
->
fragLocator
.
u
.
onDisk
.
fileSpec
;
loaded_from_shlib
=
1
;
}
else
if
(
data
->
fragLocator
.
where
==
kOnDiskSegmented
)
{
library_fss
=
*
data
->
fragLocator
.
u
.
inSegs
.
fileSpec
;
loaded_from_shlib
=
1
;
}
return
noErr
;
}
/*
** Insert the library resources into the search path. Put them after
** the resources from the application. Again, we ignore errors.
*/
void
mac_addlibresources
()
{
if
(
!
loaded_from_shlib
)
return
;
(
void
)
FSpOpenResFile
(
&
library_fss
,
fsRdPerm
);
}
#endif
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