blob: ea98529886761b23a588184b4f2d4d7d27370f8f [file] [log] [blame]
Fred Drake4d0d6212000-10-14 05:08:34 +00001\chapter{MacOS Toolbox Modules \label{toolbox}}
2
3There are a set of modules that provide interfaces to various MacOS
4toolboxes. If applicable the module will define a number of Python
5objects for the various structures declared by the toolbox, and
6operations will be implemented as methods of the object. Other
7operations will be implemented as functions in the module. Not all
8operations possible in C will also be possible in Python (callbacks
9are often a problem), and parameters will occasionally be different in
10Python (input and output buffers, especially). All methods and
11functions have a \member{__doc__} string describing their arguments
12and return values, and for additional description you are referred to
13\citetitle[http://developer.apple.com/techpubs/macos8/mac8.html]{Inside
14Macintosh} or similar works.
15
Jack Jansen95fefc72001-09-11 21:25:10 +000016These modules all live in a package called \module{Carbon}. Despite the
17name Carbon they are also available under classic PPC MacPython.
18The normal use pattern is
19
20\begin{verbatim}
21from Carbon import AE
22\end{verbatim}
Fred Drake4d0d6212000-10-14 05:08:34 +000023
24\strong{Warning!} These modules are not yet documented. If you
25wish to contribute documentation of any of these modules, please get
26in touch with \email{python-docs@python.org}.
27
28\localmoduletable
29
30
31%\section{Argument Handling for Toolbox Modules}
32
33
Jack Jansen95fefc72001-09-11 21:25:10 +000034\section{\module{Carbon.AE} --- Apple Events}
35\declaremodule{standard}{Carbon.AE}
Fred Drake4d0d6212000-10-14 05:08:34 +000036 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000037\modulesynopsis{Interface to the Apple Events toolbox.}
Fred Drake4d0d6212000-10-14 05:08:34 +000038
39
Jack Jansen95fefc72001-09-11 21:25:10 +000040\section{\module{Carbon.App} --- Appearance Manager}
41\declaremodule{standard}{Carbon.App}
42 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000043\modulesynopsis{Interface to the Appearance Manager.}
Jack Jansen95fefc72001-09-11 21:25:10 +000044
45
46\section{\module{Carbon.CF} --- Core Foundation}
47\declaremodule{standard}{Carbon.CF}
48 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000049\modulesynopsis{Interface to the Core Foundation.}
Jack Jansen95fefc72001-09-11 21:25:10 +000050
51This module is only available under Carbon MacPython. The
52\code{CFBase}, \code{CFArray}, \code{CFData}, \code{CFDictionary},
53\code{CFString} and \code{CFURL} objects are supported, some
54only partially.
55
56\section{\module{Carbon.Cm} --- Component Manager}
57\declaremodule{standard}{Carbon.Cm}
Fred Drake0c4d4682001-04-13 17:37:00 +000058 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000059\modulesynopsis{Interface to the Component Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000060
61
Jack Jansen95fefc72001-09-11 21:25:10 +000062\section{\module{Carbon.Ctl} --- Control Manager}
63\declaremodule{standard}{Carbon.Ctl}
Fred Drake4d0d6212000-10-14 05:08:34 +000064 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000065\modulesynopsis{Interface to the Control Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000066
67
Jack Jansen95fefc72001-09-11 21:25:10 +000068\section{\module{Carbon.Dlg} --- Dialog Manager}
69\declaremodule{standard}{Carbon.Dlg}
Fred Drake4d0d6212000-10-14 05:08:34 +000070 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000071\modulesynopsis{Interface to the Dialog Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000072
73
Jack Jansen95fefc72001-09-11 21:25:10 +000074\section{\module{Carbon.Evt} --- Event Manager}
75\declaremodule{standard}{Carbon.Evt}
Fred Drake4d0d6212000-10-14 05:08:34 +000076 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000077\modulesynopsis{Interface to the Event Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000078
79
Jack Jansen95fefc72001-09-11 21:25:10 +000080\section{\module{Carbon.Fm} --- Font Manager}
81\declaremodule{standard}{Carbon.Fm}
Fred Drake4d0d6212000-10-14 05:08:34 +000082 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000083\modulesynopsis{Interface to the Font Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000084
85
Jack Jansen95fefc72001-09-11 21:25:10 +000086\section{\module{Carbon.Help} --- Help Manager}
87\declaremodule{standard}{Carbon.Help}
88 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000089\modulesynopsis{Interface to the Balloon Help Manager.}
Jack Jansen95fefc72001-09-11 21:25:10 +000090
91This module is only available under MacOS9 and earlier in
92classic PPC MacPython.
93
94\section{\module{Carbon.List} --- List Manager}
95\declaremodule{standard}{Carbon.List}
Fred Drake4d0d6212000-10-14 05:08:34 +000096 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000097\modulesynopsis{Interface to the List Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000098
99
Jack Jansen95fefc72001-09-11 21:25:10 +0000100\section{\module{Carbon.Menu} --- Menu Manager}
101\declaremodule{standard}{Carbon.Menu}
Fred Drake4d0d6212000-10-14 05:08:34 +0000102 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000103\modulesynopsis{Interface to the Menu Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000104
105
Jack Jansen95fefc72001-09-11 21:25:10 +0000106\section{\module{Carbon.Mlte} --- MultiLingual Text Editor}
107\declaremodule{standard}{Carbon.Mlte}
108 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000109\modulesynopsis{Interface to the MultiLingual Text Editor.}
Jack Jansen95fefc72001-09-11 21:25:10 +0000110
111
112\section{\module{Carbon.Qd} --- QuickDraw}
113\declaremodule{builtin}{Carbon.Qd}
Fred Drake4d0d6212000-10-14 05:08:34 +0000114 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000115\modulesynopsis{Interface to the QuickDraw toolbox.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000116
117
Jack Jansen95fefc72001-09-11 21:25:10 +0000118\section{\module{Carbon.Qdoffs} --- QuickDraw Offscreen}
119\declaremodule{builtin}{Carbon.Qdoffs}
120 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000121\modulesynopsis{Interface to the QuickDraw Offscreen APIs.}
Jack Jansen95fefc72001-09-11 21:25:10 +0000122
123
124\section{\module{Carbon.Qt} --- QuickTime}
125\declaremodule{standard}{Carbon.Qt}
Fred Drake4d0d6212000-10-14 05:08:34 +0000126 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000127\modulesynopsis{Interface to the QuickTime toolbox.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000128
129
Jack Jansen95fefc72001-09-11 21:25:10 +0000130\section{\module{Carbon.Res} --- Resource Manager and Handles}
131\declaremodule{standard}{Carbon.Res}
Fred Drake4d0d6212000-10-14 05:08:34 +0000132 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000133\modulesynopsis{Interface to the Resource Manager and Handles.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000134
135
Fred Drakef3e6f062002-03-08 03:15:49 +0000136\input{libscrap}
Fred Drake4d0d6212000-10-14 05:08:34 +0000137
138
Jack Jansen95fefc72001-09-11 21:25:10 +0000139\section{\module{Carbon.Snd} --- Sound Manager}
140\declaremodule{standard}{Carbon.Snd}
Fred Drake4d0d6212000-10-14 05:08:34 +0000141 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000142\modulesynopsis{Interface to the Sound Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000143
144
Jack Jansen95fefc72001-09-11 21:25:10 +0000145\section{\module{Carbon.TE} --- TextEdit}
146\declaremodule{standard}{Carbon.TE}
Fred Drake4d0d6212000-10-14 05:08:34 +0000147 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000148\modulesynopsis{Interface to TextEdit.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000149
150
Jack Jansen95fefc72001-09-11 21:25:10 +0000151\section{\module{Carbon.Win} --- Window Manager}
152\declaremodule{standard}{Carbon.Win}
Fred Drake4d0d6212000-10-14 05:08:34 +0000153 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000154\modulesynopsis{Interface to the Window Manager.}