Celeste 2.7 Mac OS

  1. Celeste 2.7 Mac Os X
  2. Celeste 2.7 Mac Os Downloads
  3. Celeste 2.7 Mac Os Download

This module provides access to MacOS specific functionality in the Pythoninterpreter, such as how the interpreter eventloop functions and the like. Usewith care.

Celeste

Mac OS X specific services¶. This chapter describes modules that are only available on the Mac OS X platform. See the chapters MacPython OSA Modules and Undocumented Mac OS modules for more modules, and the HOWTO Using Python on a Macintosh for a general introduction to Mac.

  • Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, and Mac OS X 10.7 Lion installed X11.app by default, but from OS X 10.8 Mountain Lion on Apple dropped dedicated support for X11.app, with users being directed to the open source XQuartz project (to which Apple contributes) instead.
  • Note: The headings on this list indicate the Macintosh System bundle names; the bullet points indicate the version of the System File included in that bundle. This is to make it clearer for people searching for specific bundle versions as opposed to System File versions. Finder File versions are not indicated. 1 Classic Mac OS 1.1 Macintosh System Software (0 - 0.3) 1.1.1 System File 1 1.1.2.

Note the capitalization of the module name; this is a historical artifact.

MacOS.runtimemodel

Always 'macho', from Python 2.4 on. In earlier versions of Python the valuecould also be 'ppc' for the classic Mac OS 8 runtime model or 'carbon'for the Mac OS 9 runtime model.

MacOS.linkmodel

The way the interpreter has been linked. As extension modules may beincompatible between linking models, packages could use this information to givemore decent error messages. The value is one of 'static' for a staticallylinked Python, 'framework' for Python in a Mac OS X framework, 'shared'for Python in a standard Unix shared library. Older Pythons could also have thevalue 'cfm' for Mac OS 9-compatible Python.

exception MacOS.Error

This exception is raised on MacOS generated errors, either from functions inthis module or from other mac-specific modules like the toolbox interfaces. Thearguments are the integer error code (the OSErr value) and a textualdescription of the error code. Symbolic names for all known error codes aredefined in the standard module macerrors.

MacOS.GetErrorString(errno)

Return the textual description of MacOS error code errno.

MacOS.DebugStr(message[, object])

On Mac OS X the string is simply printed to stderr (on older Mac OS systems moreelaborate functionality was available), but it provides a convenient location toattach a breakpoint in a low-level debugger like gdb.

備註

Not available in 64-bit mode.

MacOS.SysBeep()

Ring the bell.

MacOS.GetTicks()

Get the number of clock ticks (1/60th of a second) since system boot.

MacOS.GetCreatorAndType(file)

Return the file creator and file type as two four-character strings. The fileparameter can be a pathname or an FSSpec or FSRef object.

備註

It is not possible to use an FSSpec in 64-bit mode.

MacOS.SetCreatorAndType(file, creator, type)

Set the file creator and file type. The file parameter can be a pathname or anFSSpec or FSRef object. creator and type must be four characterstrings.

2.7

備註

It is not possible to use an FSSpec in 64-bit mode.

MacOS.openrf(name[, mode])

Open the resource fork of a file. Arguments are the same as for the built-infunction open(). The object returned has file-like semantics, but it isnot a Python file object, so there may be subtle differences.

Celeste 2.7 Mac Os X

MacOS.WMAvailable()

Celeste 2.7 Mac Os Downloads

Checks whether the current process has access to the window manager. The methodwill return False if the window manager is not available, for instance whenrunning on Mac OS X Server or when logged in via ssh, or when the currentinterpreter is not running from a fullblown application bundle. A script runsfrom an application bundle either when it has been started withpythonw instead of python or when running as an applet.

Celeste 2.7 Mac Os Download

MacOS.splash([resourceid])

Opens a splash screen by resource id. Use resourceid 0 to closethe splash screen.