Sophie

Sophie

distrib > Mandriva > current > i586 > by-pkgid > 8f1462e52e1797a02c97073eed0b7f92 > files > 671

python-docs-2.6.5-2.5mdv2010.2.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>37.8. Mac OS Toolbox Modules &mdash; Python v2.6.5 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '2.6.5',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="search" type="application/opensearchdescription+xml"
          title="Search within Python v2.6.5 documentation"
          href="../_static/opensearch.xml"/>
    <link rel="author" title="About these documents" href="../about.html" />
    <link rel="copyright" title="Copyright" href="../copyright.html" />
    <link rel="top" title="Python v2.6.5 documentation" href="../index.html" />
    <link rel="up" title="37. Mac OS X specific services" href="mac.html" />
    <link rel="next" title="37.9. ColorPicker — Color selection dialog" href="colorpicker.html" />
    <link rel="prev" title="37.7. autoGIL — Global Interpreter Lock handling in event loops" href="autogil.html" />
    <link rel="shortcut icon" type="image/png" href="../_static/py.png" />
 

  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="colorpicker.html" title="37.9. ColorPicker — Color selection dialog"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="autogil.html" title="37.7. autoGIL — Global Interpreter Lock handling in event loops"
             accesskey="P">previous</a> |</li>
        <li><img src="../_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="../index.html">Python v2.6.5 documentation</a> &raquo;</li>

          <li><a href="index.html" >The Python Standard Library</a> &raquo;</li>
          <li><a href="mac.html" accesskey="U">37. Mac OS X specific services</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="mac-os-toolbox-modules">
<span id="toolbox"></span><h1>37.8. Mac OS Toolbox Modules<a class="headerlink" href="#mac-os-toolbox-modules" title="Permalink to this headline">¶</a></h1>
<p>There are a set of modules that provide interfaces to various Mac OS toolboxes.
If applicable the module will define a number of Python objects for the various
structures declared by the toolbox, and operations will be implemented as
methods of the object.  Other operations will be implemented as functions in the
module.  Not all operations possible in C will also be possible in Python
(callbacks are often a problem), and parameters will occasionally be different
in Python (input and output buffers, especially).  All methods and functions
have a <tt class="xref docutils literal"><span class="pre">__doc__</span></tt> string describing their arguments and return values, and
for additional description you are referred to <a class="reference external" href="http://developer.apple.com/documentation/macos8/mac8.html">Inside Macintosh</a> or similar works.</p>
<p>These modules all live in a package called <tt class="xref docutils literal"><span class="pre">Carbon</span></tt>. Despite that name they
are not all part of the Carbon framework: CF is really in the CoreFoundation
framework and Qt is in the QuickTime framework. The normal use pattern is</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">Carbon</span> <span class="kn">import</span> <span class="n">AE</span>
</pre></div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The Carbon modules have been removed in Python 3.0.</p>
</div>
<div class="section" id="module-Carbon.AE">
<h2>37.8.1. <tt class="xref docutils literal"><span class="pre">Carbon.AE</span></tt> &#8212; Apple Events<a class="headerlink" href="#module-Carbon.AE" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.AH">
<h2>37.8.2. <tt class="xref docutils literal"><span class="pre">Carbon.AH</span></tt> &#8212; Apple Help<a class="headerlink" href="#module-Carbon.AH" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.App">
<h2>37.8.3. <tt class="xref docutils literal"><span class="pre">Carbon.App</span></tt> &#8212; Appearance Manager<a class="headerlink" href="#module-Carbon.App" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Appearance">
<h2>37.8.4. <tt class="xref docutils literal"><span class="pre">Carbon.Appearance</span></tt> &#8212; Appearance Manager constants<a class="headerlink" href="#module-Carbon.Appearance" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.CF">
<h2>37.8.5. <tt class="xref docutils literal"><span class="pre">Carbon.CF</span></tt> &#8212; Core Foundation<a class="headerlink" href="#module-Carbon.CF" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
<p>The <tt class="docutils literal"><span class="pre">CFBase</span></tt>, <tt class="docutils literal"><span class="pre">CFArray</span></tt>, <tt class="docutils literal"><span class="pre">CFData</span></tt>, <tt class="docutils literal"><span class="pre">CFDictionary</span></tt>, <tt class="docutils literal"><span class="pre">CFString</span></tt> and
<tt class="docutils literal"><span class="pre">CFURL</span></tt> objects are supported, some only partially.</p>
</div>
<div class="section" id="module-Carbon.CG">
<h2>37.8.6. <tt class="xref docutils literal"><span class="pre">Carbon.CG</span></tt> &#8212; Core Graphics<a class="headerlink" href="#module-Carbon.CG" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.CarbonEvt">
<h2>37.8.7. <tt class="xref docutils literal"><span class="pre">Carbon.CarbonEvt</span></tt> &#8212; Carbon Event Manager<a class="headerlink" href="#module-Carbon.CarbonEvt" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.CarbonEvents">
<h2>37.8.8. <tt class="xref docutils literal"><span class="pre">Carbon.CarbonEvents</span></tt> &#8212; Carbon Event Manager constants<a class="headerlink" href="#module-Carbon.CarbonEvents" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Cm">
<h2>37.8.9. <tt class="xref docutils literal"><span class="pre">Carbon.Cm</span></tt> &#8212; Component Manager<a class="headerlink" href="#module-Carbon.Cm" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Components">
<h2>37.8.10. <tt class="xref docutils literal"><span class="pre">Carbon.Components</span></tt> &#8212; Component Manager constants<a class="headerlink" href="#module-Carbon.Components" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.ControlAccessor">
<h2>37.8.11. <tt class="xref docutils literal"><span class="pre">Carbon.ControlAccessor</span></tt> &#8212; Control Manager accssors<a class="headerlink" href="#module-Carbon.ControlAccessor" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Controls">
<h2>37.8.12. <tt class="xref docutils literal"><span class="pre">Carbon.Controls</span></tt> &#8212; Control Manager constants<a class="headerlink" href="#module-Carbon.Controls" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.CoreFounation">
<h2>37.8.13. <tt class="xref docutils literal"><span class="pre">Carbon.CoreFounation</span></tt> &#8212; CoreFounation constants<a class="headerlink" href="#module-Carbon.CoreFounation" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.CoreGraphics">
<h2>37.8.14. <tt class="xref docutils literal"><span class="pre">Carbon.CoreGraphics</span></tt> &#8212; CoreGraphics constants<a class="headerlink" href="#module-Carbon.CoreGraphics" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Ctl">
<h2>37.8.15. <tt class="xref docutils literal"><span class="pre">Carbon.Ctl</span></tt> &#8212; Control Manager<a class="headerlink" href="#module-Carbon.Ctl" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Dialogs">
<h2>37.8.16. <tt class="xref docutils literal"><span class="pre">Carbon.Dialogs</span></tt> &#8212; Dialog Manager constants<a class="headerlink" href="#module-Carbon.Dialogs" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Dlg">
<h2>37.8.17. <tt class="xref docutils literal"><span class="pre">Carbon.Dlg</span></tt> &#8212; Dialog Manager<a class="headerlink" href="#module-Carbon.Dlg" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Drag">
<h2>37.8.18. <tt class="xref docutils literal"><span class="pre">Carbon.Drag</span></tt> &#8212; Drag and Drop Manager<a class="headerlink" href="#module-Carbon.Drag" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Dragconst">
<h2>37.8.19. <tt class="xref docutils literal"><span class="pre">Carbon.Dragconst</span></tt> &#8212; Drag and Drop Manager constants<a class="headerlink" href="#module-Carbon.Dragconst" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Events">
<h2>37.8.20. <tt class="xref docutils literal"><span class="pre">Carbon.Events</span></tt> &#8212; Event Manager constants<a class="headerlink" href="#module-Carbon.Events" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Evt">
<h2>37.8.21. <tt class="xref docutils literal"><span class="pre">Carbon.Evt</span></tt> &#8212; Event Manager<a class="headerlink" href="#module-Carbon.Evt" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.File">
<h2>37.8.22. <tt class="xref docutils literal"><span class="pre">Carbon.File</span></tt> &#8212; File Manager<a class="headerlink" href="#module-Carbon.File" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Files">
<h2>37.8.23. <tt class="xref docutils literal"><span class="pre">Carbon.Files</span></tt> &#8212; File Manager constants<a class="headerlink" href="#module-Carbon.Files" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Fm">
<h2>37.8.24. <tt class="xref docutils literal"><span class="pre">Carbon.Fm</span></tt> &#8212; Font Manager<a class="headerlink" href="#module-Carbon.Fm" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Folder">
<h2>37.8.25. <tt class="xref docutils literal"><span class="pre">Carbon.Folder</span></tt> &#8212; Folder Manager<a class="headerlink" href="#module-Carbon.Folder" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Folders">
<h2>37.8.26. <tt class="xref docutils literal"><span class="pre">Carbon.Folders</span></tt> &#8212; Folder Manager constants<a class="headerlink" href="#module-Carbon.Folders" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Fonts">
<h2>37.8.27. <tt class="xref docutils literal"><span class="pre">Carbon.Fonts</span></tt> &#8212; Font Manager constants<a class="headerlink" href="#module-Carbon.Fonts" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Help">
<h2>37.8.28. <tt class="xref docutils literal"><span class="pre">Carbon.Help</span></tt> &#8212; Help Manager<a class="headerlink" href="#module-Carbon.Help" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.IBCarbon">
<h2>37.8.29. <tt class="xref docutils literal"><span class="pre">Carbon.IBCarbon</span></tt> &#8212; Carbon InterfaceBuilder<a class="headerlink" href="#module-Carbon.IBCarbon" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.IBCarbonRuntime">
<h2>37.8.30. <tt class="xref docutils literal"><span class="pre">Carbon.IBCarbonRuntime</span></tt> &#8212; Carbon InterfaceBuilder constants<a class="headerlink" href="#module-Carbon.IBCarbonRuntime" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Icns">
<h2>37.8.31. <tt class="xref docutils literal"><span class="pre">Carbon.Icn</span></tt> &#8212; Carbon Icon Manager<a class="headerlink" href="#module-Carbon.Icns" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Icons">
<h2>37.8.32. <tt class="xref docutils literal"><span class="pre">Carbon.Icons</span></tt> &#8212; Carbon Icon Manager constants<a class="headerlink" href="#module-Carbon.Icons" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Launch">
<h2>37.8.33. <tt class="xref docutils literal"><span class="pre">Carbon.Launch</span></tt> &#8212; Carbon Launch Services<a class="headerlink" href="#module-Carbon.Launch" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.LaunchServices">
<h2>37.8.34. <tt class="xref docutils literal"><span class="pre">Carbon.LaunchServices</span></tt> &#8212; Carbon Launch Services constants<a class="headerlink" href="#module-Carbon.LaunchServices" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.List">
<h2>37.8.35. <tt class="xref docutils literal"><span class="pre">Carbon.List</span></tt> &#8212; List Manager<a class="headerlink" href="#module-Carbon.List" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Lists">
<h2>37.8.36. <tt class="xref docutils literal"><span class="pre">Carbon.Lists</span></tt> &#8212; List Manager constants<a class="headerlink" href="#module-Carbon.Lists" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.MacHelp">
<h2>37.8.37. <tt class="xref docutils literal"><span class="pre">Carbon.MacHelp</span></tt> &#8212; Help Manager constants<a class="headerlink" href="#module-Carbon.MacHelp" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.MediaDescr">
<h2>37.8.38. <tt class="xref docutils literal"><span class="pre">Carbon.MediaDescr</span></tt> &#8212; Parsers and generators for Quicktime Media descriptors<a class="headerlink" href="#module-Carbon.MediaDescr" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Menu">
<h2>37.8.39. <tt class="xref docutils literal"><span class="pre">Carbon.Menu</span></tt> &#8212; Menu Manager<a class="headerlink" href="#module-Carbon.Menu" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Menus">
<h2>37.8.40. <tt class="xref docutils literal"><span class="pre">Carbon.Menus</span></tt> &#8212; Menu Manager constants<a class="headerlink" href="#module-Carbon.Menus" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Mlte">
<h2>37.8.41. <tt class="xref docutils literal"><span class="pre">Carbon.Mlte</span></tt> &#8212; MultiLingual Text Editor<a class="headerlink" href="#module-Carbon.Mlte" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.OSA">
<h2>37.8.42. <tt class="xref docutils literal"><span class="pre">Carbon.OSA</span></tt> &#8212; Carbon OSA Interface<a class="headerlink" href="#module-Carbon.OSA" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.OSAconst">
<h2>37.8.43. <tt class="xref docutils literal"><span class="pre">Carbon.OSAconst</span></tt> &#8212; Carbon OSA Interface constants<a class="headerlink" href="#module-Carbon.OSAconst" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.QDOffscreen">
<h2>37.8.44. <tt class="xref docutils literal"><span class="pre">Carbon.QDOffscreen</span></tt> &#8212; QuickDraw Offscreen constants<a class="headerlink" href="#module-Carbon.QDOffscreen" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Qd">
<h2>37.8.45. <tt class="xref docutils literal"><span class="pre">Carbon.Qd</span></tt> &#8212; QuickDraw<a class="headerlink" href="#module-Carbon.Qd" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Qdoffs">
<h2>37.8.46. <tt class="xref docutils literal"><span class="pre">Carbon.Qdoffs</span></tt> &#8212; QuickDraw Offscreen<a class="headerlink" href="#module-Carbon.Qdoffs" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Qt">
<h2>37.8.47. <tt class="xref docutils literal"><span class="pre">Carbon.Qt</span></tt> &#8212; QuickTime<a class="headerlink" href="#module-Carbon.Qt" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.QuickDraw">
<h2>37.8.48. <tt class="xref docutils literal"><span class="pre">Carbon.QuickDraw</span></tt> &#8212; QuickDraw constants<a class="headerlink" href="#module-Carbon.QuickDraw" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.QuickTime">
<h2>37.8.49. <tt class="xref docutils literal"><span class="pre">Carbon.QuickTime</span></tt> &#8212; QuickTime constants<a class="headerlink" href="#module-Carbon.QuickTime" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Res">
<h2>37.8.50. <tt class="xref docutils literal"><span class="pre">Carbon.Res</span></tt> &#8212; Resource Manager and Handles<a class="headerlink" href="#module-Carbon.Res" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Resources">
<h2>37.8.51. <tt class="xref docutils literal"><span class="pre">Carbon.Resources</span></tt> &#8212; Resource Manager and Handles constants<a class="headerlink" href="#module-Carbon.Resources" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Scrap">
<h2>37.8.52. <tt class="xref docutils literal"><span class="pre">Carbon.Scrap</span></tt> &#8212; Scrap Manager<a class="headerlink" href="#module-Carbon.Scrap" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
<p>This module is only fully available on Mac OS 9 and earlier under classic PPC
MacPython.  Very limited functionality is available under Carbon MacPython.</p>
<p id="index-226">The Scrap Manager supports the simplest form of cut &amp; paste operations on the
Macintosh.  It can be use for both inter- and intra-application clipboard
operations.</p>
<p>The <tt class="xref docutils literal"><span class="pre">Scrap</span></tt> module provides low-level access to the functions of the Scrap
Manager.  It contains the following functions:</p>
<dl class="function">
<dt id="Carbon.Scrap.InfoScrap">
<tt class="descclassname">Carbon.Scrap.</tt><tt class="descname">InfoScrap</tt><big>(</big><big>)</big><a class="headerlink" href="#Carbon.Scrap.InfoScrap" title="Permalink to this definition">¶</a></dt>
<dd><p>Return current information about the scrap.  The information is encoded as a
tuple containing the fields <tt class="docutils literal"><span class="pre">(size,</span> <span class="pre">handle,</span> <span class="pre">count,</span> <span class="pre">state,</span> <span class="pre">path)</span></tt>.</p>
<table border="1" class="docutils">
<colgroup>
<col width="18%" />
<col width="82%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Field</th>
<th class="head">Meaning</th>
</tr>
</thead>
<tbody valign="top">
<tr><td><em>size</em></td>
<td>Size of the scrap in bytes.</td>
</tr>
<tr><td><em>handle</em></td>
<td>Resource object representing the scrap.</td>
</tr>
<tr><td><em>count</em></td>
<td>Serial number of the scrap contents.</td>
</tr>
<tr><td><em>state</em></td>
<td>Integer; positive if in memory, <tt class="docutils literal"><span class="pre">0</span></tt> if on
disk, negative if uninitialized.</td>
</tr>
<tr><td><em>path</em></td>
<td>Filename of the scrap when stored on disk.</td>
</tr>
</tbody>
</table>
</dd></dl>

<div class="admonition-see-also admonition seealso">
<p class="first admonition-title">See also</p>
<dl class="last docutils">
<dt><a class="reference external" href="http://developer.apple.com/documentation/mac/MoreToolbox/MoreToolbox-109.html">Scrap Manager</a></dt>
<dd>Apple&#8217;s documentation for the Scrap Manager gives a lot of useful information
about using the Scrap Manager in applications.</dd>
</dl>
</div>
</div>
<div class="section" id="module-Carbon.Snd">
<h2>37.8.53. <tt class="xref docutils literal"><span class="pre">Carbon.Snd</span></tt> &#8212; Sound Manager<a class="headerlink" href="#module-Carbon.Snd" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Sound">
<h2>37.8.54. <tt class="xref docutils literal"><span class="pre">Carbon.Sound</span></tt> &#8212; Sound Manager constants<a class="headerlink" href="#module-Carbon.Sound" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.TE">
<h2>37.8.55. <tt class="xref docutils literal"><span class="pre">Carbon.TE</span></tt> &#8212; TextEdit<a class="headerlink" href="#module-Carbon.TE" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.TextEdit">
<h2>37.8.56. <tt class="xref docutils literal"><span class="pre">Carbon.TextEdit</span></tt> &#8212; TextEdit constants<a class="headerlink" href="#module-Carbon.TextEdit" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Win">
<h2>37.8.57. <tt class="xref docutils literal"><span class="pre">Carbon.Win</span></tt> &#8212; Window Manager<a class="headerlink" href="#module-Carbon.Win" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
<div class="section" id="module-Carbon.Windows">
<h2>37.8.58. <tt class="xref docutils literal"><span class="pre">Carbon.Windows</span></tt> &#8212; Window Manager constants<a class="headerlink" href="#module-Carbon.Windows" title="Permalink to this headline">¶</a></h2>
<p><em>Platforms: </em>Mac</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="../contents.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="#">37.8. Mac OS Toolbox Modules</a><ul>
<li><a class="reference external" href="#module-Carbon.AE">37.8.1. <tt class="docutils literal"><span class="pre">Carbon.AE</span></tt> &#8212; Apple Events</a></li>
<li><a class="reference external" href="#module-Carbon.AH">37.8.2. <tt class="docutils literal"><span class="pre">Carbon.AH</span></tt> &#8212; Apple Help</a></li>
<li><a class="reference external" href="#module-Carbon.App">37.8.3. <tt class="docutils literal"><span class="pre">Carbon.App</span></tt> &#8212; Appearance Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Appearance">37.8.4. <tt class="docutils literal"><span class="pre">Carbon.Appearance</span></tt> &#8212; Appearance Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.CF">37.8.5. <tt class="docutils literal"><span class="pre">Carbon.CF</span></tt> &#8212; Core Foundation</a></li>
<li><a class="reference external" href="#module-Carbon.CG">37.8.6. <tt class="docutils literal"><span class="pre">Carbon.CG</span></tt> &#8212; Core Graphics</a></li>
<li><a class="reference external" href="#module-Carbon.CarbonEvt">37.8.7. <tt class="docutils literal"><span class="pre">Carbon.CarbonEvt</span></tt> &#8212; Carbon Event Manager</a></li>
<li><a class="reference external" href="#module-Carbon.CarbonEvents">37.8.8. <tt class="docutils literal"><span class="pre">Carbon.CarbonEvents</span></tt> &#8212; Carbon Event Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Cm">37.8.9. <tt class="docutils literal"><span class="pre">Carbon.Cm</span></tt> &#8212; Component Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Components">37.8.10. <tt class="docutils literal"><span class="pre">Carbon.Components</span></tt> &#8212; Component Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.ControlAccessor">37.8.11. <tt class="docutils literal"><span class="pre">Carbon.ControlAccessor</span></tt> &#8212; Control Manager accssors</a></li>
<li><a class="reference external" href="#module-Carbon.Controls">37.8.12. <tt class="docutils literal"><span class="pre">Carbon.Controls</span></tt> &#8212; Control Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.CoreFounation">37.8.13. <tt class="docutils literal"><span class="pre">Carbon.CoreFounation</span></tt> &#8212; CoreFounation constants</a></li>
<li><a class="reference external" href="#module-Carbon.CoreGraphics">37.8.14. <tt class="docutils literal"><span class="pre">Carbon.CoreGraphics</span></tt> &#8212; CoreGraphics constants</a></li>
<li><a class="reference external" href="#module-Carbon.Ctl">37.8.15. <tt class="docutils literal"><span class="pre">Carbon.Ctl</span></tt> &#8212; Control Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Dialogs">37.8.16. <tt class="docutils literal"><span class="pre">Carbon.Dialogs</span></tt> &#8212; Dialog Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Dlg">37.8.17. <tt class="docutils literal"><span class="pre">Carbon.Dlg</span></tt> &#8212; Dialog Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Drag">37.8.18. <tt class="docutils literal"><span class="pre">Carbon.Drag</span></tt> &#8212; Drag and Drop Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Dragconst">37.8.19. <tt class="docutils literal"><span class="pre">Carbon.Dragconst</span></tt> &#8212; Drag and Drop Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Events">37.8.20. <tt class="docutils literal"><span class="pre">Carbon.Events</span></tt> &#8212; Event Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Evt">37.8.21. <tt class="docutils literal"><span class="pre">Carbon.Evt</span></tt> &#8212; Event Manager</a></li>
<li><a class="reference external" href="#module-Carbon.File">37.8.22. <tt class="docutils literal"><span class="pre">Carbon.File</span></tt> &#8212; File Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Files">37.8.23. <tt class="docutils literal"><span class="pre">Carbon.Files</span></tt> &#8212; File Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Fm">37.8.24. <tt class="docutils literal"><span class="pre">Carbon.Fm</span></tt> &#8212; Font Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Folder">37.8.25. <tt class="docutils literal"><span class="pre">Carbon.Folder</span></tt> &#8212; Folder Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Folders">37.8.26. <tt class="docutils literal"><span class="pre">Carbon.Folders</span></tt> &#8212; Folder Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Fonts">37.8.27. <tt class="docutils literal"><span class="pre">Carbon.Fonts</span></tt> &#8212; Font Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Help">37.8.28. <tt class="docutils literal"><span class="pre">Carbon.Help</span></tt> &#8212; Help Manager</a></li>
<li><a class="reference external" href="#module-Carbon.IBCarbon">37.8.29. <tt class="docutils literal"><span class="pre">Carbon.IBCarbon</span></tt> &#8212; Carbon InterfaceBuilder</a></li>
<li><a class="reference external" href="#module-Carbon.IBCarbonRuntime">37.8.30. <tt class="docutils literal"><span class="pre">Carbon.IBCarbonRuntime</span></tt> &#8212; Carbon InterfaceBuilder constants</a></li>
<li><a class="reference external" href="#module-Carbon.Icns">37.8.31. <tt class="docutils literal"><span class="pre">Carbon.Icn</span></tt> &#8212; Carbon Icon Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Icons">37.8.32. <tt class="docutils literal"><span class="pre">Carbon.Icons</span></tt> &#8212; Carbon Icon Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Launch">37.8.33. <tt class="docutils literal"><span class="pre">Carbon.Launch</span></tt> &#8212; Carbon Launch Services</a></li>
<li><a class="reference external" href="#module-Carbon.LaunchServices">37.8.34. <tt class="docutils literal"><span class="pre">Carbon.LaunchServices</span></tt> &#8212; Carbon Launch Services constants</a></li>
<li><a class="reference external" href="#module-Carbon.List">37.8.35. <tt class="docutils literal"><span class="pre">Carbon.List</span></tt> &#8212; List Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Lists">37.8.36. <tt class="docutils literal"><span class="pre">Carbon.Lists</span></tt> &#8212; List Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.MacHelp">37.8.37. <tt class="docutils literal"><span class="pre">Carbon.MacHelp</span></tt> &#8212; Help Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.MediaDescr">37.8.38. <tt class="docutils literal"><span class="pre">Carbon.MediaDescr</span></tt> &#8212; Parsers and generators for Quicktime Media descriptors</a></li>
<li><a class="reference external" href="#module-Carbon.Menu">37.8.39. <tt class="docutils literal"><span class="pre">Carbon.Menu</span></tt> &#8212; Menu Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Menus">37.8.40. <tt class="docutils literal"><span class="pre">Carbon.Menus</span></tt> &#8212; Menu Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.Mlte">37.8.41. <tt class="docutils literal"><span class="pre">Carbon.Mlte</span></tt> &#8212; MultiLingual Text Editor</a></li>
<li><a class="reference external" href="#module-Carbon.OSA">37.8.42. <tt class="docutils literal"><span class="pre">Carbon.OSA</span></tt> &#8212; Carbon OSA Interface</a></li>
<li><a class="reference external" href="#module-Carbon.OSAconst">37.8.43. <tt class="docutils literal"><span class="pre">Carbon.OSAconst</span></tt> &#8212; Carbon OSA Interface constants</a></li>
<li><a class="reference external" href="#module-Carbon.QDOffscreen">37.8.44. <tt class="docutils literal"><span class="pre">Carbon.QDOffscreen</span></tt> &#8212; QuickDraw Offscreen constants</a></li>
<li><a class="reference external" href="#module-Carbon.Qd">37.8.45. <tt class="docutils literal"><span class="pre">Carbon.Qd</span></tt> &#8212; QuickDraw</a></li>
<li><a class="reference external" href="#module-Carbon.Qdoffs">37.8.46. <tt class="docutils literal"><span class="pre">Carbon.Qdoffs</span></tt> &#8212; QuickDraw Offscreen</a></li>
<li><a class="reference external" href="#module-Carbon.Qt">37.8.47. <tt class="docutils literal"><span class="pre">Carbon.Qt</span></tt> &#8212; QuickTime</a></li>
<li><a class="reference external" href="#module-Carbon.QuickDraw">37.8.48. <tt class="docutils literal"><span class="pre">Carbon.QuickDraw</span></tt> &#8212; QuickDraw constants</a></li>
<li><a class="reference external" href="#module-Carbon.QuickTime">37.8.49. <tt class="docutils literal"><span class="pre">Carbon.QuickTime</span></tt> &#8212; QuickTime constants</a></li>
<li><a class="reference external" href="#module-Carbon.Res">37.8.50. <tt class="docutils literal"><span class="pre">Carbon.Res</span></tt> &#8212; Resource Manager and Handles</a></li>
<li><a class="reference external" href="#module-Carbon.Resources">37.8.51. <tt class="docutils literal"><span class="pre">Carbon.Resources</span></tt> &#8212; Resource Manager and Handles constants</a></li>
<li><a class="reference external" href="#module-Carbon.Scrap">37.8.52. <tt class="docutils literal"><span class="pre">Carbon.Scrap</span></tt> &#8212; Scrap Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Snd">37.8.53. <tt class="docutils literal"><span class="pre">Carbon.Snd</span></tt> &#8212; Sound Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Sound">37.8.54. <tt class="docutils literal"><span class="pre">Carbon.Sound</span></tt> &#8212; Sound Manager constants</a></li>
<li><a class="reference external" href="#module-Carbon.TE">37.8.55. <tt class="docutils literal"><span class="pre">Carbon.TE</span></tt> &#8212; TextEdit</a></li>
<li><a class="reference external" href="#module-Carbon.TextEdit">37.8.56. <tt class="docutils literal"><span class="pre">Carbon.TextEdit</span></tt> &#8212; TextEdit constants</a></li>
<li><a class="reference external" href="#module-Carbon.Win">37.8.57. <tt class="docutils literal"><span class="pre">Carbon.Win</span></tt> &#8212; Window Manager</a></li>
<li><a class="reference external" href="#module-Carbon.Windows">37.8.58. <tt class="docutils literal"><span class="pre">Carbon.Windows</span></tt> &#8212; Window Manager constants</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="autogil.html"
                                  title="previous chapter">37.7. <tt class="docutils literal docutils literal"><span class="pre">autoGIL</span></tt> &#8212; Global Interpreter Lock handling in event loops</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="colorpicker.html"
                                  title="next chapter">37.9. <tt class="docutils literal"><span class="pre">ColorPicker</span></tt> &#8212; Color selection dialog</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../_sources/library/carbon.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="colorpicker.html" title="37.9. ColorPicker — Color selection dialog"
             >next</a> |</li>
        <li class="right" >
          <a href="autogil.html" title="37.7. autoGIL — Global Interpreter Lock handling in event loops"
             >previous</a> |</li>
        <li><img src="../_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="../index.html">Python v2.6.5 documentation</a> &raquo;</li>

          <li><a href="index.html" >The Python Standard Library</a> &raquo;</li>
          <li><a href="mac.html" >37. Mac OS X specific services</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
    &copy; <a href="../copyright.html">Copyright</a> 1990-2010, Python Software Foundation.
    <br />
    The Python Software Foundation is a non-profit corporation.  
    <a href="http://www.python.org/psf/donations/">Please donate.</a>
    <br />
    Last updated on Mar 19, 2010.
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.5.
    </div>

  </body>
</html>