Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 1 | \chapter{MacOS Toolbox Modules \label{toolbox}} |
| 2 | |
| 3 | There are a set of modules that provide interfaces to various MacOS |
| 4 | toolboxes. If applicable the module will define a number of Python |
| 5 | objects for the various structures declared by the toolbox, and |
| 6 | operations will be implemented as methods of the object. Other |
| 7 | operations will be implemented as functions in the module. Not all |
| 8 | operations possible in C will also be possible in Python (callbacks |
| 9 | are often a problem), and parameters will occasionally be different in |
| 10 | Python (input and output buffers, especially). All methods and |
| 11 | functions have a \member{__doc__} string describing their arguments |
| 12 | and return values, and for additional description you are referred to |
| 13 | \citetitle[http://developer.apple.com/techpubs/macos8/mac8.html]{Inside |
| 14 | Macintosh} or similar works. |
| 15 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 16 | These modules all live in a package called \module{Carbon}. Despite the |
| 17 | name Carbon they are also available under classic PPC MacPython. |
| 18 | The normal use pattern is |
| 19 | |
| 20 | \begin{verbatim} |
| 21 | from Carbon import AE |
| 22 | \end{verbatim} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 23 | |
| 24 | \strong{Warning!} These modules are not yet documented. If you |
| 25 | wish to contribute documentation of any of these modules, please get |
| 26 | in touch with \email{python-docs@python.org}. |
| 27 | |
| 28 | \localmoduletable |
| 29 | |
| 30 | |
| 31 | %\section{Argument Handling for Toolbox Modules} |
| 32 | |
| 33 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 34 | \section{\module{Carbon.AE} --- Apple Events} |
| 35 | \declaremodule{standard}{Carbon.AE} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 36 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 37 | \modulesynopsis{Interface to the Apple Events toolbox.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 38 | |
| 39 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 40 | \section{\module{Carbon.App} --- Appearance Manager} |
| 41 | \declaremodule{standard}{Carbon.App} |
| 42 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 43 | \modulesynopsis{Interface to the Appearance Manager.} |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 44 | |
| 45 | |
| 46 | \section{\module{Carbon.CF} --- Core Foundation} |
| 47 | \declaremodule{standard}{Carbon.CF} |
| 48 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 49 | \modulesynopsis{Interface to the Core Foundation.} |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 50 | |
| 51 | This 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 |
| 54 | only partially. |
| 55 | |
| 56 | \section{\module{Carbon.Cm} --- Component Manager} |
| 57 | \declaremodule{standard}{Carbon.Cm} |
Fred Drake | 0c4d468 | 2001-04-13 17:37:00 +0000 | [diff] [blame] | 58 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 59 | \modulesynopsis{Interface to the Component Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 60 | |
| 61 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 62 | \section{\module{Carbon.Ctl} --- Control Manager} |
| 63 | \declaremodule{standard}{Carbon.Ctl} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 64 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 65 | \modulesynopsis{Interface to the Control Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 66 | |
| 67 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 68 | \section{\module{Carbon.Dlg} --- Dialog Manager} |
| 69 | \declaremodule{standard}{Carbon.Dlg} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 70 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 71 | \modulesynopsis{Interface to the Dialog Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 72 | |
| 73 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 74 | \section{\module{Carbon.Evt} --- Event Manager} |
| 75 | \declaremodule{standard}{Carbon.Evt} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 76 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 77 | \modulesynopsis{Interface to the Event Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 78 | |
| 79 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 80 | \section{\module{Carbon.Fm} --- Font Manager} |
| 81 | \declaremodule{standard}{Carbon.Fm} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 82 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 83 | \modulesynopsis{Interface to the Font Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 84 | |
| 85 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 86 | \section{\module{Carbon.Help} --- Help Manager} |
| 87 | \declaremodule{standard}{Carbon.Help} |
| 88 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 89 | \modulesynopsis{Interface to the Balloon Help Manager.} |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 90 | |
| 91 | This module is only available under MacOS9 and earlier in |
| 92 | classic PPC MacPython. |
| 93 | |
| 94 | \section{\module{Carbon.List} --- List Manager} |
| 95 | \declaremodule{standard}{Carbon.List} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 96 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 97 | \modulesynopsis{Interface to the List Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 98 | |
| 99 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 100 | \section{\module{Carbon.Menu} --- Menu Manager} |
| 101 | \declaremodule{standard}{Carbon.Menu} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 102 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 103 | \modulesynopsis{Interface to the Menu Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 104 | |
| 105 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 106 | \section{\module{Carbon.Mlte} --- MultiLingual Text Editor} |
| 107 | \declaremodule{standard}{Carbon.Mlte} |
| 108 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 109 | \modulesynopsis{Interface to the MultiLingual Text Editor.} |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 110 | |
| 111 | |
| 112 | \section{\module{Carbon.Qd} --- QuickDraw} |
| 113 | \declaremodule{builtin}{Carbon.Qd} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 114 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 115 | \modulesynopsis{Interface to the QuickDraw toolbox.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 116 | |
| 117 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 118 | \section{\module{Carbon.Qdoffs} --- QuickDraw Offscreen} |
| 119 | \declaremodule{builtin}{Carbon.Qdoffs} |
| 120 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 121 | \modulesynopsis{Interface to the QuickDraw Offscreen APIs.} |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 122 | |
| 123 | |
| 124 | \section{\module{Carbon.Qt} --- QuickTime} |
| 125 | \declaremodule{standard}{Carbon.Qt} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 126 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 127 | \modulesynopsis{Interface to the QuickTime toolbox.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 128 | |
| 129 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 130 | \section{\module{Carbon.Res} --- Resource Manager and Handles} |
| 131 | \declaremodule{standard}{Carbon.Res} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 132 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 133 | \modulesynopsis{Interface to the Resource Manager and Handles.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 134 | |
| 135 | |
Fred Drake | f3e6f06 | 2002-03-08 03:15:49 +0000 | [diff] [blame] | 136 | \input{libscrap} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 137 | |
| 138 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 139 | \section{\module{Carbon.Snd} --- Sound Manager} |
| 140 | \declaremodule{standard}{Carbon.Snd} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 141 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 142 | \modulesynopsis{Interface to the Sound Manager.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 143 | |
| 144 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 145 | \section{\module{Carbon.TE} --- TextEdit} |
| 146 | \declaremodule{standard}{Carbon.TE} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 147 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 148 | \modulesynopsis{Interface to TextEdit.} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 149 | |
| 150 | |
Jack Jansen | 95fefc7 | 2001-09-11 21:25:10 +0000 | [diff] [blame] | 151 | \section{\module{Carbon.Win} --- Window Manager} |
| 152 | \declaremodule{standard}{Carbon.Win} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 153 | \platform{Mac} |
Fred Drake | ac96868 | 2002-01-17 04:51:55 +0000 | [diff] [blame] | 154 | \modulesynopsis{Interface to the Window Manager.} |