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
e67dab3d
Kaydet (Commit)
e67dab3d
authored
Eki 09, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated, and added a very terse description of PyMac_SetConsoleHandler().
üst
893b0ab9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
embed.html
Mac/Demo/embed.html
+8
-10
No files found.
Mac/Demo/embed.html
Dosyayı görüntüle @
e67dab3d
...
...
@@ -6,9 +6,8 @@
<H1>
Embedding Python on the Mac
</H1>
<HR>
<B>
Note
</B>
: if you have a binary-only release of MacPython you will not
have this demo installed. Install the developer option (in the standard installer) or go to
<a
href=
"http://www.cwi.nl/~jack/macpython.html"
>
Jack's MacPython Page
</a>
to download either a source release if you want to embed
have this demo installed. Install the developer option (in the standard installer) or
a source release if you want to embed
Python in other applications.
<p>
Embedding Python on the mac is pretty similar to embedding it on other
...
...
@@ -23,8 +22,8 @@ resource files and calls Py_Initialize.
<LI>
You have to be consequent in your use of GUSI. If the library uses
it so should your program and vice versa.
<LI>
The console-behaviour (close-on-exit, etc) is controlled by Python
,
but you
are of course free to change that after calling PyMac_Initialize()
.
<LI>
The console-behaviour (close-on-exit, etc) is controlled by Python
but you
can overwrite this with
<code>
PyMac_SetConsoleHandler()
</code>
.
</UL>
The Python environment is started with a dummy argc and argv, and initial
...
...
@@ -37,10 +36,9 @@ The most logical way to embed Python is to link it against the shared
library
<code>
PythonCore
</code>
. An example project and source can be
found in the
<a
href=
"embed"
>
embed
</a>
folder.
<p>
<b>
Note
</b>
: you may think that you do not have the project file
<code>
PythonCore
</code>
but actually you do: the standard installation
process deposits it in the
<code>
Extensions
</code>
folder in the system
folder under the name
<code>
PythonCore
<i>
version
</i></code>
. Add that file
to the project replacing
<code>
PythonCore
</code>
.
<p>
This example code also shows how to override the console: if you pass the
<code>
-q
</code>
argument in the argument box output is thrown away. If you
pass the
<code>
-d
</code>
option the output is sent to
<code>
DebugStr
</code>
(so be sure to use this only when running the example under a debugger).
</BODY>
</HTML>
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