blob: 9fbcb8440d4a44d012fb3dfdd53ea61016bf6c12 [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
Fred Drake644a08c2003-07-22 01:09:22 +000013\citetitle[http://developer.apple.com/documentation/macos8/mac8.html]{Inside
Fred Drake4d0d6212000-10-14 05:08:34 +000014Macintosh} or similar works.
15
Jack Jansen7aeba452003-02-12 09:58:33 +000016These modules all live in a package called \module{Carbon}. Despite that name
17they are not all part of the Carbon framework: CF is really in the CoreFoundation
18framework and Qt is in the QuickTime framework.
Jack Jansen95fefc72001-09-11 21:25:10 +000019The normal use pattern is
20
21\begin{verbatim}
22from Carbon import AE
23\end{verbatim}
Fred Drake4d0d6212000-10-14 05:08:34 +000024
25\strong{Warning!} These modules are not yet documented. If you
26wish to contribute documentation of any of these modules, please get
Fred Drake9d843082003-07-30 02:55:28 +000027in touch with \email{docs@python.org}.
Fred Drake4d0d6212000-10-14 05:08:34 +000028
29\localmoduletable
30
31
32%\section{Argument Handling for Toolbox Modules}
33
34
Jack Jansen95fefc72001-09-11 21:25:10 +000035\section{\module{Carbon.AE} --- Apple Events}
36\declaremodule{standard}{Carbon.AE}
Fred Drake4d0d6212000-10-14 05:08:34 +000037 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000038\modulesynopsis{Interface to the Apple Events toolbox.}
Fred Drake4d0d6212000-10-14 05:08:34 +000039
Jack Jansen7aeba452003-02-12 09:58:33 +000040\section{\module{Carbon.AH} --- Apple Help}
41\declaremodule{standard}{Carbon.AH}
42 \platform{Mac}
43\modulesynopsis{Interface to the Apple Help manager.}
44
Fred Drake4d0d6212000-10-14 05:08:34 +000045
Jack Jansen95fefc72001-09-11 21:25:10 +000046\section{\module{Carbon.App} --- Appearance Manager}
47\declaremodule{standard}{Carbon.App}
48 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000049\modulesynopsis{Interface to the Appearance Manager.}
Jack Jansen95fefc72001-09-11 21:25:10 +000050
51
52\section{\module{Carbon.CF} --- Core Foundation}
53\declaremodule{standard}{Carbon.CF}
54 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000055\modulesynopsis{Interface to the Core Foundation.}
Jack Jansen95fefc72001-09-11 21:25:10 +000056
Jack Jansen7aeba452003-02-12 09:58:33 +000057The
Jack Jansen95fefc72001-09-11 21:25:10 +000058\code{CFBase}, \code{CFArray}, \code{CFData}, \code{CFDictionary},
59\code{CFString} and \code{CFURL} objects are supported, some
60only partially.
61
Jack Jansen7aeba452003-02-12 09:58:33 +000062\section{\module{Carbon.CG} --- Core Graphics}
63\declaremodule{standard}{Carbon.CG}
64 \platform{Mac}
65\modulesynopsis{Interface to the Component Manager.}
66
67\section{\module{Carbon.CarbonEvt} --- Carbon Event Manager}
68\declaremodule{standard}{Carbon.CaronEvt}
69 \platform{Mac}
70\modulesynopsis{Interface to the Carbon Event Manager.}
71
Jack Jansen95fefc72001-09-11 21:25:10 +000072\section{\module{Carbon.Cm} --- Component Manager}
73\declaremodule{standard}{Carbon.Cm}
Fred Drake0c4d4682001-04-13 17:37:00 +000074 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000075\modulesynopsis{Interface to the Component Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000076
77
Jack Jansen95fefc72001-09-11 21:25:10 +000078\section{\module{Carbon.Ctl} --- Control Manager}
79\declaremodule{standard}{Carbon.Ctl}
Fred Drake4d0d6212000-10-14 05:08:34 +000080 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000081\modulesynopsis{Interface to the Control Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000082
83
Jack Jansen95fefc72001-09-11 21:25:10 +000084\section{\module{Carbon.Dlg} --- Dialog Manager}
85\declaremodule{standard}{Carbon.Dlg}
Fred Drake4d0d6212000-10-14 05:08:34 +000086 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000087\modulesynopsis{Interface to the Dialog Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000088
89
Jack Jansen95fefc72001-09-11 21:25:10 +000090\section{\module{Carbon.Evt} --- Event Manager}
91\declaremodule{standard}{Carbon.Evt}
Fred Drake4d0d6212000-10-14 05:08:34 +000092 \platform{Mac}
Jack Jansen7aeba452003-02-12 09:58:33 +000093\modulesynopsis{Interface to the classic Event Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +000094
95
Jack Jansen95fefc72001-09-11 21:25:10 +000096\section{\module{Carbon.Fm} --- Font Manager}
97\declaremodule{standard}{Carbon.Fm}
Fred Drake4d0d6212000-10-14 05:08:34 +000098 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000099\modulesynopsis{Interface to the Font Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000100
Jack Jansen7aeba452003-02-12 09:58:33 +0000101\section{\module{Carbon.Folder} --- Folder Manager}
102\declaremodule{standard}{Carbon.Folder}
103 \platform{Mac}
104\modulesynopsis{Interface to the Folder Manager.}
105
Fred Drake4d0d6212000-10-14 05:08:34 +0000106
Jack Jansen95fefc72001-09-11 21:25:10 +0000107\section{\module{Carbon.Help} --- Help Manager}
108\declaremodule{standard}{Carbon.Help}
109 \platform{Mac}
Jack Jansen7aeba452003-02-12 09:58:33 +0000110\modulesynopsis{Interface to the Carbon Help Manager.}
Jack Jansen95fefc72001-09-11 21:25:10 +0000111
112\section{\module{Carbon.List} --- List Manager}
113\declaremodule{standard}{Carbon.List}
Fred Drake4d0d6212000-10-14 05:08:34 +0000114 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000115\modulesynopsis{Interface to the List Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000116
117
Jack Jansen95fefc72001-09-11 21:25:10 +0000118\section{\module{Carbon.Menu} --- Menu Manager}
119\declaremodule{standard}{Carbon.Menu}
Fred Drake4d0d6212000-10-14 05:08:34 +0000120 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000121\modulesynopsis{Interface to the Menu Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000122
123
Jack Jansen95fefc72001-09-11 21:25:10 +0000124\section{\module{Carbon.Mlte} --- MultiLingual Text Editor}
125\declaremodule{standard}{Carbon.Mlte}
126 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000127\modulesynopsis{Interface to the MultiLingual Text Editor.}
Jack Jansen95fefc72001-09-11 21:25:10 +0000128
129
130\section{\module{Carbon.Qd} --- QuickDraw}
131\declaremodule{builtin}{Carbon.Qd}
Fred Drake4d0d6212000-10-14 05:08:34 +0000132 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000133\modulesynopsis{Interface to the QuickDraw toolbox.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000134
135
Jack Jansen95fefc72001-09-11 21:25:10 +0000136\section{\module{Carbon.Qdoffs} --- QuickDraw Offscreen}
137\declaremodule{builtin}{Carbon.Qdoffs}
138 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000139\modulesynopsis{Interface to the QuickDraw Offscreen APIs.}
Jack Jansen95fefc72001-09-11 21:25:10 +0000140
141
142\section{\module{Carbon.Qt} --- QuickTime}
143\declaremodule{standard}{Carbon.Qt}
Fred Drake4d0d6212000-10-14 05:08:34 +0000144 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000145\modulesynopsis{Interface to the QuickTime toolbox.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000146
147
Jack Jansen95fefc72001-09-11 21:25:10 +0000148\section{\module{Carbon.Res} --- Resource Manager and Handles}
149\declaremodule{standard}{Carbon.Res}
Fred Drake4d0d6212000-10-14 05:08:34 +0000150 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000151\modulesynopsis{Interface to the Resource Manager and Handles.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000152
Jack Jansen7aeba452003-02-12 09:58:33 +0000153\section{\module{Carbon.Scrap} --- Scrap Manager}
154\declaremodule{standard}{Carbon.Scrap}
155 \platform{Mac}
156\modulesynopsis{Interface to the Carbon Scrap Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000157
Jack Jansen95fefc72001-09-11 21:25:10 +0000158\section{\module{Carbon.Snd} --- Sound Manager}
159\declaremodule{standard}{Carbon.Snd}
Fred Drake4d0d6212000-10-14 05:08:34 +0000160 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000161\modulesynopsis{Interface to the Sound Manager.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000162
163
Jack Jansen95fefc72001-09-11 21:25:10 +0000164\section{\module{Carbon.TE} --- TextEdit}
165\declaremodule{standard}{Carbon.TE}
Fred Drake4d0d6212000-10-14 05:08:34 +0000166 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000167\modulesynopsis{Interface to TextEdit.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000168
169
Jack Jansen95fefc72001-09-11 21:25:10 +0000170\section{\module{Carbon.Win} --- Window Manager}
171\declaremodule{standard}{Carbon.Win}
Fred Drake4d0d6212000-10-14 05:08:34 +0000172 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000173\modulesynopsis{Interface to the Window Manager.}