GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing docs.python.org — 37.8. Mac OS Toolbox Modules — Python 2.7.18 documentation
This document is for an old version of Python that is no longer supported.
You should upgrade and read the
Python documentation for the current stable release.
37.8. Mac OS Toolbox Modules¶These are a set of modules that provide interfaces to various legacy 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 These modules all live in a package called from Carbon import AE Note Most of the OS X APIs that these modules use are deprecated or removed in recent versions of OS X. Many are not available when Python is executing in 64-bit mode. The Carbon modules have been removed in Python 3. You should avoid using them in Python 2. 37.8.3.
|
Field |
Meaning |
|---|---|
size |
Size of the scrap in bytes. |
handle |
Resource object representing the scrap. |
count |
Serial number of the scrap contents. |
state |
Integer; positive if in memory, |
path |
Filename of the scrap when stored on disk. |
See also
Apple’s documentation for the Scrap Manager gives a lot of useful information about using the Scrap Manager in applications.
Carbon.Snd — Sound Manager¶Carbon.Sound — Sound Manager constants¶Carbon.TextEdit — TextEdit constants¶Carbon.Win — Window Manager¶Carbon.Windows — Window Manager constants¶