[Stackless-checkins] CVS: slpdev/src/2.2/src/Mac/OSXResources/app/Resources/English.lproj/Documentation PackageManager.gif, NONE, 1.1 community.html, NONE, 1.1 finder.html, NONE, 1.1 gui.html, NONE, 1.1 index.html, NONE, 1.1 intro.html, NONE, 1.1 packman.html, NONE, 1.1 python.gif, NONE, 1.1 pythonsmall.gif, NONE, 1.1 scripting.html, NONE, 1.1 shell.html, NONE, 1.1
Christian Tismer
tismer at centera.de
Sat May 1 02:54:33 CEST 2004
Update of /home/cvs/slpdev/src/2.2/src/Mac/OSXResources/app/Resources/English.lproj/Documentation
In directory centera.de:/home/tismer/slpdev/src/2.2/src/Mac/OSXResources/app/Resources/English.lproj/Documentation
Added Files:
PackageManager.gif community.html finder.html gui.html
index.html intro.html packman.html python.gif pythonsmall.gif
scripting.html shell.html
Log Message:
added files
--- NEW FILE: PackageManager.gif ---
GIF89a
C'ÿÖ?#y>\:MÔ«ZÑsTít£\ : :
jP3J>øÞÓÂjLpWÿØ
['Á©Dçáþüôü¬ïv·¢¨ñ²~LÚÀD=éÚáß¡ÎÉÊ>%ýøöé¹
J´èP<}*]ZÐZ>¢JJµjTZ(Z2Ý
2¿°´ØÄÈ
´A1øÁxâ©H{Þ騣-µ&ypCP f´©Ô-Äø2¨¡?fi/vêÏ4RLá
uDy
]ü̶Ûê˯¿üt+òÈà°B9Ù)âhàËËqÌàc4ÿc3ÎXëû
Á¾ÂÑc9
gÿYx@í©=(lä0QÙ;X{A#èbÐÅ(Ráà`+
`
xC0FáJèÖNÎ
s1Ö(ÜÝ©B;Óî
.p1§Q
áË`þ²b
]ÏR×p<@LJðºÞ5ÿÈáD&æ58ÀW'mò²,öÞ¯*fàáÌ ýeq_=ÜÎÎsÑ
QæÔ´"L^18ÃÙBaC<5VDub¸AI3¼aT5OR°
¶§3ãÀ¢°A¦ÎåÄ`¹3»ÕÙ
<OY¨
PPMK *$ E´Tór¹ªypjØö*ÒíLVd`ÓFP@º96åO_b
$´ámèÆWf¨A B@Àð;+u¸? ÞO
¯øÃ^^D%È
¸
¸}pxtèÖ
·ç~ïl® f ah
5`ð|>à?ÔÇ4}Hwo÷¨dP
Ѷ
¹
Ì`
É vñ8ÏØ}÷ð&é9pV(é
µX)
ø
éÿùpÉ>ù_P
Ûè\lay¸6y|Éé
/ >É@ `
è Dé¼¢°x¢ðL ðP
X©Ûù\ð
@À¬I*ÐÐZ¨Á
Ǥ
ÃЮ
ïzñ0ó*© *÷
³
ðªñ°
+£¬1!k±ÍÊæÿú¯hù
@±Îp&°[ñ¶ìðµ0¹]@³{˹>´#K²(¸×Z¸{p´¶ÊñP±È»
0¯®p¼ÈÛè
à½{
Á¼Å ®ðË ",Æc\ÆfÆjlÄËÄðÈ«¬ÒO<frü¼¼Ãy\rÌZ|¬fkÀ"ðÃÝX\È\ĬÆ*B ²L)@PËgPɶWÉrüÍBÌvÊ<Ê{P§ÊLÆ{ÈÍÔ\Íßð
) Ò Í!±ê@¹üÍ߬ɿìxäÅÁëÇ{¾B`epæ«ÊDÌÊð
¼í,ÑLÑ-Ë:Ñ<ÝÓV Ï ±¬Ç@çÀÀHMÒJÝÉâ5*]¸£¾C|ÈÍò¬Õ[ÝÕxúðÕ\ÁÏòpÀgÖXÐåÜÔçüÖ«ÈW}ÓÔ¼Õõ×yý ¥ÁÈ¢ò@
)ÐßîßÿÑP$p <mÛÕýÙj½à
Ä Á+ß pá0áÐqPOPAÍ*òÜÑ]Ôý~-^ØÍßû[äl
ãH^Þ·Pt`ã5ò
p:ðçò~ôníÿnàuàè5÷ÉðïÂNîÅ>ñè¸
ït ïW¤Üî®ðåîò>Qëí-ØøËÝò*?ïõ®ón¾ìcðóuhófðîñFÿ"Ù ¶ö`à:ò5ðð,?õÂê£N·Pöp7õ/ö ³¶g@O0íòðÕÞòn¯¬Ç®Ùæ0ì9¿÷TÎÏ&p
×`x_ô/+ÈêÀòzßøKáéOùù¿ùßù
--- NEW FILE: community.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>What is MacPython?</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<table>
<tr>
<td>
<img src="python.gif" width="128" height="128" align="top" alt="">
</td>
<td>
<h1>MacPython Community</h1>
</td>
</tr>
</table>
<hr>
<h2>Web Sites</h2>
<p>The MacPython homepage, <a href="http://www.cwi.nl/~jack/macpython.html">
www.cwi.nl/~jack/macpython.html</a>
is where you can find installers, documents, links to useful packages and more.
And, of course,
<a href="http://www.python.org">www.python.org</a> has a much larger collection
of material on Python that is not Mac-specific.</p>
<h2>News groups and Mailing lists</h2>
<p>There are a lot of mailing lists on Python. Some of the more interesting
ones are:</p>
<ul>
<li><a href="mailto:python-help at python.org">python-help at python.org</a> where
you can send questions for individual support. Please check the websites mentioned
above first, though!</li>
<li>The <a href="news:comp.lang.python">comp.lang.python</a> newsgroup for general
discussion. Also available as a
<a href="http://www.python.org/mailman/listinfo/python-list">mailing list</a>.</li>
<li>The <a href="news:comp.lang.python.announce">comp.lang.python.announce</a>
newsgroup for announcements. Low-volume and moderated. Also available as a
<a href="http://www.python.org/mailman/listinfo/python-announce-list">mailing list</a>.</li>
<li>Last but not least, the <a href="http://www.python.org/sigs/pythonmac-sig/">pythonmac-sig</a>
mailing list is specifically for MacPython. Discussions on the implementation of new
features, but beginners questions are welcome too.</li>
</ul>
<p>In addition there are Python <a href="http://www.python.org/sigs/">Special Interest Group</a>
mailing lists on a wide variety of topics such as image processing, numerical algorithms
and more.</p>
<h2>More</h2>
<p>An index of conferences, Wiki's, bookshops and more can be found at the
<a href="http://www.python.org/psa/">Community</a> section of the Python website.</p>
<p>If you find a bug you are kindly requested to report it, preferrably through the
automatic bug tracker at <a href="http://www.python.org">www.python.org</a></p>
<p>If you want to become an active developer you are very welcome! Join the
pythonmac-sig mailing list mentioned above, and read the
<a href="http://www.python.org/dev/">Developer</a> section on the Python website.</p>
</body>
</html>
--- NEW FILE: finder.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Python and the Finder</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<h1>Running Python scripts from the Finder</h1>
<table>
<tr>
<td>
<img src="python.gif" width="128" height="128" align="top" alt="">
</td>
<td>
<p>The application PythonLauncher will start a Python interpreter
when you drop a Python source file onto it, any file with a <tt>.py</tt>
or <tt>.pyw</tt> extension. If you set PythonLauncher as the default
application to open a file
(<a href="help:search=Changing%20the%20application%20that%20opens%20a%20file bookID=Mac%20Help">
tell me more</a>) this also works when you double click a Python script.</p>
<p>PythonLauncher has preferences per filetype for selecting
the interpreter to use, and how to launch it: in a Terminal window
or not, etc. Holding the Option key while launching your script will
bring up a window that allows changing these settings for a single
run. </p>
</td>
</tr>
</table>
<hr>
</body>
</html>
--- NEW FILE: gui.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Creating a User Interface with MacPython</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<h1>Creating a User Interface with MacPython</h1>
<p>There are a number of packages that allow creation of a user interface
for your Python code, each of which has its own merits:</p>
<ul>
<li> The Carbon package gives low-level access to the old Macintosh toolbox
calls for windows, events, dialogs and more. The <tt>FrameWork</tt> module
wraps these in a minimal framework. For documentation see the Macintosh
Library section of the <a href="doc/index.html">Python Language and runtime
documentation</a> and the Human Interface Toolbox section of
<a href="help:openbook=Carbon">Apple's Carbon Documentation</a>.
This solution is compatible with MacPython-OS9.</li>
<li> The <tt>W</tt> framework is built on top of this, and easier to use.
The MacPython IDE uses W. Some documentation is available on
<a href="http://www.nevada.edu/~cwebster/Python/index.html">Corran Webster's website</a>.
Compatible with MacPython-OS9.</li>
</ul>
<p>For new work, however, one of the following packages may be better suited.
They may be available out of the box in this distribution, otherwise you
can install them through the <a href="packman.html">Package Manager</a>:</p>
<ul>
<li> <a href="http://pyobjc.sourceforge.net/">PyObjC</a> allows complete access to Cocoa.
In technical terms it is a
bidirectional bridge between Python and Objectve-C, similar to Apple's Java
bridge. Probably the best choice for Mac OS X-only applications, but at the
time of this writing PyObjC is still in beta.</li>
<li> <a href="http://wxpython.sourceforge.net/">wxPython</a> gives Python programs
access to the wxWindows GUI toolkit. Many people consider this
the best open source cross-platform GUI solution available today.</li>
<li> Tkinter is the oldest cross-platform GUI toolkit for Python, bridging Python
to Tcl/Tk. If you install AquaTk it creates a native user interface on Mac OS X.
Documented in the Library section, Tkinter subsection of the
<a href="doc/index.html">Python Language and runtime documentation</a>. Tkinter
is not available for MacPython-OS9.</li>
</ul>
</body>
</html>
--- NEW FILE: index.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>MacPython Help</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
<META NAME="AppleTitle" CONTENT="MacPython Help">
</head>
<body>
<h1>MacPython Help</h1>
<table>
<tr>
<td>
<img src="python.gif" width="128" height="128" align="top" alt="">
</td>
<td>
<p>Choose a topic, or enter keywords into the search field:</p>
<ul>
<li><a href="intro.html">What is MacPython?</a>
</li>
<li><a href="ide/index.html">MacPython
Integrated Development Environment Introduction</a>
</li>
<li><a href="doc/index.html">Python Language and runtime documentation</a>
</li>
<li><a href="finder.html">Running Python scripts from the Finder</a>
</li>
<li><a href="shell.html">Running Python scripts from the Unix Shell</a>
</li>
<li><a href="gui.html">Creating a User Interface with MacPython</a>
</li>
<li><a href="scripting.html">Controlling other Applications from MacPython</a>
</li>
<li><a href="packman.html">Installing additional functionality with the
Package Manager</a>
</li>
<li><a href="community.html">MacPython community</a>
</li>
</ul>
</td>
</tr>
</table>
<hr>
</body>
</html>
--- NEW FILE: intro.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>What is MacPython?</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<h1>What is MacPython?</h1>
<table>
<tr>
<td>
<img src="python.gif" width="128" height="128" align="top" alt="">
</td>
<td>
<p>Python is a programming language. MacPython is a package containing
that programming language plus Mac-specific tools and extensions.</p>
</td>
</tr>
</table>
<hr>
<h2>The Python Language</h2>
<p>The Python programming language is available for many hardware
platforms, and most general documentation is Unix- or Windows-centered. Keep
this in mind when reading the rest of this help, or information on the web.
</p>
<p>The Python website, <a href="http://www.python.org">www.python.org</a>,
has a <em>Beginners Guide</em> section including an
<a href="http://python.org/doc/essays/blurb.html">executive summary</a> on
the language and a
<a href="http://python.org/doc/essays/comparisons.html">comparison</a> of Python
to other languages. Or read the (rather longwinded) Python
Tutorial in the <a href="doc/index.html">Python Language and runtime documentation</a>.</p>
<p>MacPython contains a complete <a href="shell.html">unix interpreter</a> so
if you are familiar with Python on unix you should feel right at home.</p>
<h2>MacPython additions</h2>
<p>The MacPython Integrated Development Environment (IDE) allows
easy editing, running and debugging of scripts. Read the
<a href="ide/index.html">Introduction
to the IDE</a> to whet your appetite.</p>
<p>MacPython comes with lots of modules that allow access to
MacOS-specific technology, such as Carbon, Quicktime and AppleScript.
See the <em>Macintosh
Modules</em> section of the
<a href="doc/index.html">Python Language and runtime documentation</a>,
but please keep in mind that some information there still pertains to
Mac OS 9.
Full access to the Cocoa APIs
and tools such as Interface Builder is available separately through the
<a href="packman.html">Package Manager</a>.</p>
<p>The <a href="packman.html">Package Manager</a> also gives you access to extension
packages for cross-platform GUI development (Tkinter, wxPython, PyOpenGL),
image processing (PIL), scientific
computing (Numeric) and much more. <em>PyObjC</em> deserves a special mention: it allows
transparent access to Cocoa and Interface Builder, similar to what Java provides,
thereby making Python a first class citizen in the Mac OS X developer world. </p>
<p>Python scripts can be saved as <em>applets</em>, semi-standalone applications
that work just like a normal application. Additionally you can even create
true standalone application that have everything embedded and can be
shipped to anyone, without the need to install Python. You do <em>not</em>
need to install the Apple Developer Tools for this. </p>
</body>
</html>
--- NEW FILE: packman.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Python Package Manager</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<h1>Installing additional Python Packages</h1>
<table>
<tr>
<td>
<img src="PackageManager.gif" width="128" height="128" align="top" alt="">
</td>
<td>
<p>The Python Package Manager helps you installing additional
packages that enhance Python. It determines the exact MacOS version
and Python version you have and uses that information to download
a database that has packages that are test and tried on that
combination. In other words: if something is in your Package Manager
window but does not work you are free to blame the database maintainer.</p>
<p>PackageManager then checks which of the packages you have installed
and which ones not. This should also work when you have installed packages
outside of PackageManager.
You can select packages and install them, and PackageManager will work
out the requirements and install these too.</p>
<p>Often PackageManager will list a package in two flavors: binary
and source. Binary should always work, source will only work if
you have installed the Apple Developer Tools. PackageManager will warn
you about this, and also about other external dependencies.</p>
<p>PackageManager is available as a separate application and also
as a function of the IDE, through the <tt>File->Package Manager</tt> menu
entry. </p>
<h2>Troubleshooting</h2>
<p>If package manager fails to open the database first check that you are
connected to the internet. If you are connected then the problem
could be that there is no database (yet?) for your version of Mac OS X.
You may be able to find an alternative
database that works for your system at
<a href="http://www.python.org/packman">http://www.python.org/packman</a>.
In the standalone Package Manager you can then open such an alternative database
with the <tt>File->Open URL...</tt> command, but you should realize that
you are now on untested ground.</p>
<p>Another potential problem source is that you are behind a firewall. This version
of PackageManager uses the Unix method of setting a firewall: you need to set the
environment variable <tt>http_proxy</tt> to <tt>"http://<i>proxyhost</i>:<i>port</i>"</tt>.
See <a href="http://developer.apple.com/qa/qa2001/qa1067.html">Apple Technical
Q&A QA1067</a> for instructions.</p>
</td>
</tr>
</table>
<hr>
</body>
</html>
--- NEW FILE: python.gif ---
GIF89a
áÚ_¾ÐÖí÷@UÚ°ÿò~È&W3wB¹`â3a#Ë
ëµÿ!{gÜ(Á(dA8sÌ¡E+ñ4O+ αÉ7õÝwf8Óß?»Ä
+3ÐS`BÌñ(¢£ÉçÔâáÈQ!~µe¸!=pxrGA4@Ç($εÔb
&íL3
&õbäDLT@P@~é¤ã/F<BA"lÑÇ#V(´L*¤$ë¬ãH,i&òÂ-àI[
+"$Â
ô¤Cèe&'ÑDó2e¬²28\ÿ?~1r1P7ót³ ªmèIP¤*Ñ,M°ÀÂU4ëÏ.¶JT
w ÅVÌ>¨}ì 8xð @þö7½2T/ûHW-ÈÈ \Ø
à +ýPc<ß@ñ>À!0@G.ÿ:"ñ:Ðßü ¾U¡
P:>#Zº¸
ôÁBãÐ
îðM¬øNã,§'
biá-p§2áOWRT¢Mà´@'~ú Àâ0:<Â!gJR,ã°hDiOf¾s¦ÈäÀp¬À*X@DÐG´O+ðåºR
µ#]¿æ@
¤DÇÑLº:v¢þàD . ®þ£ÿ(`±<äÌÃÂár}¬jÙè`°¬>ÊÍ)ÿ=b´Yñ,hÂCÑäÐ
:R»ÚÕ¶ÀТ@h9&nÞhÍígÓ·>TD®HÅ.®QÓâZµ-ø
Úl
ôÐpª
Y¢hV.pP|¢
é¬.y`Ån¡
@pÂÏè5vÈ!ö¡Ñ¢UPç"
dßâýÂH·B
^ë¸
pk
á
g|âî*ábB²ÄlÖÒ··jc$ðÏ&ÂGÈ$Üò,°Áë¬\
°f6+ê0'ôá
Ý pxr
B@Aáa|Z`LÀ`5'¯ðþ`{
â
&Ð7c°
µ
Û÷pMPAp ¹¿ð®d¶¯° À8àJÐZ°
þtÁ§
ñTð@aÛÿ·o°êx
£ 2@
äýÐAàÑb@
D K1©
aÄ´XÌTcP8JÂà
_°
ÆÀM@
o
{P
,°
`Àî ¶`Mp
bHù»
`Ét3ØXA°
¿°
Ò$9x©Â¤M@Èdc®S^E(q
ÛI|óDóÔI
|÷|w°ð¤°5±
ÑÏı|ÿÇàÚLi± Û³¡>²Õ°³ïÔI?K)û,زáê0«
˱**ѳV
Õ ±A+´[»µAûµ`²y*Ikµ|wµ*ë´Ø³úÈË
âζ¼à-þÛw^å4^áçãÁ̤
Òö½ÄSä(|Õaè.íÝ'¾Í)³<ÙrÞàç]ççyåÎ8®×Ý-ÒÚ¬-ÅXí²mÍkÞæ1ÐäqþsNçÞvÎÞÎ>ã³~Ü}¾Ü~Äö- KÒÕê®ìq»^ÛÚ¼è¹Ù >Ù
½ìr]çýîðþÖrMíÉãñ<Ï(ÀãÎáw\Øfþ,
¹×üÝÆ>Öþè½mÙkMçíÞðïð@MÔ|~á÷n̾Ìù=èWýïáÈ
ÓÞîíÐNÑ=ò*¿ò,ßò}Ñåé¸ÿnñؾë̬ÚÇ)Mÿñ¬¼äb}àNÉ%OÎæüÐ
ÑJ¿ôLßôn×çóxýËzÝÑ@Ì}mó½º9ßÏà=ÏØ2ÖÇËdÍÈlËáì˹ÌËnÿöpÏËl̬ÔÄÜåN}Ú"ß\ê,æ ïÅ\Óc¬È9öìÈÜøÿøOɯÔÉm<ÄFÄÉËëMØ:Ïñ!î.-à1Í\Á5½Ã=ÈLÆ®ÿú°û²?ûA|ÌÏÁq\QÚAþÂþú
áÂÅ%¹¥ïÅÛlÃ%@Á¨¿ÁüüÐýÒý¼Á1ÐÁðë×Èk¿ÏÒ;ÕÕÊ¿[Ø×\¾¿;ì¾ëËìï×íûþðÿò?ÿóϾìO¿Û¿¼Ã{¿
'ÈPÒc!&`¨-ÛÃ%N¤X±b6mNpÇR¨xrâ=`ÄåKWdÎYÓæMHXP@É)^¼4x0Bf³ØÔ)ÅÚ2näØñÇGRD$3Å«I°aÅ%[¶¬W´BjíQô` 5.eúÔî]¼yõîåÛ×ï_À&\ØðaÄ/f¬7
--- NEW FILE: pythonsmall.gif ---
GIF89a
Îè£Ö©x%
--- NEW FILE: scripting.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Controlling other Applications from MacPython</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<h1>Controlling other Applications from MacPython</h1>
<p>Python has a fairly complete implementation of the Open Scripting
Architecure (OSA, also commonly referred to as AppleScript), allowing
you to control scriptable applications from your Python program,
and with a fairly pythonic interface. This piece of
Python:</p>
<blockquote><pre><tt>
import Finder
f = Finder.Finder()
print f.get(f.window(1).name)
</tt></pre></blockquote>
<p>is identical to the following piece of AppleScript:</p>
<blockquote><pre><tt>
tell application "Finder"
get name of window 1
end tell
</tt></pre></blockquote>
<p>To send AppleEvents to an application you must first create the Python
modules interfacing to the terminology of the application (what
<tt>Script Editor</tt> calls the "Dictionary"). Use the IDE menu command
<tt>File->Generate OSA Suite...</tt> for this. For more control run</p>
<blockquote><tt>
pythonw .../Lib/plat-mac/gensuitemodule.py --help
</tt></blockquote>
<p>from a terminal window.</p>
<h2>Creating a scriptable application in Python</h2>
You can also create a scriptable application in Python, but this is not
very well documented. For Carbon
applications you should look at the <tt>MiniAEFrame</tt> module.
</body>
</html>
--- NEW FILE: shell.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Python and the Unix Shell</title>
<meta name="generator" content="BBEdit 6.5.3">
<link rel="SHORTCUT ICON" href="pythonsmall.gif">
<META NAME="AppleIcon" CONTENT="pythonsmall.gif">
</head>
<body>
<h1>Running Python scripts from the Unix Shell</h1>
<table>
<tr>
<td>
<img src="python.gif" width="128" height="128" align="top" alt="">
</td>
<td>
<p>MacPython 2.3 installs a perfectly normal Unix commandline
python interpreter in <tt>/usr/local/bin/python</tt>. As of Mac OS X 10.2, however,
<tt>/usr/local/bin</tt> is not on the search path of your shell. Moreover,
Apple's python 2.2, which lives in <tt>/usr/bin</tt> <em>is</em> on your
search path, so this can lead to confusion.</p>
<p>If you use <tt>tcsh</tt> you should add the following line
to the file <tt>.login</tt> in your home directory and restart Terminal:
<br>
<tt>setenv PATH /usr/local/bin:$PATH</tt>
</p>
<p>If you use <tt>bash</tt> or <tt>zsh</tt>
you should add the following line
to the file <tt>.profile</tt> in your home directory and restart Terminal:
<br>
<tt>export PATH=/usr/local/bin:$PATH</tt>
</p>
<h2>GUI scripts</h2>
<p>Due to the way MacOS handles windowing applications you need to run
<em>all</em> scripts that use the window manager (be it through
Carbon, Cocoa, Tkinter, wxPython, PyOpenGL or anything else) with the
<tt>pythonw</tt> interpreter, also installed in <tt>/usr/local/bin</tt>.</p>
<p>Running with <tt>python</tt> results in an inability to bring the
script to the front, or interacting with it. </p>
</td>
</tr>
</table>
<hr>
</body>
</html>
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list