| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \chapter{Undocumented Modules \label{undocumented-modules}} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The modules in this chapter are poorly documented (if at all).  If you | 
					
						
							|  |  |  | wish to contribute documentation of any of these modules, please get in | 
					
						
							| 
									
										
										
										
											2001-07-14 02:09:32 +00:00
										 |  |  | touch with | 
					
						
							|  |  |  | \ulink{\email{python-docs@python.org}}{mailto:python-docs@python.org}. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \localmoduletable | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | \section{\module{applesingle} --- AppleSingle decoder} | 
					
						
							|  |  |  | \declaremodule{standard}{applesingle} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Rudimentary decoder for AppleSingle format files.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \section{\module{buildtools} --- Helper module for BuildApplet and Friends} | 
					
						
							|  |  |  | \declaremodule{standard}{buildtools} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \modulesynopsis{Helper module for BuildApplet, BuildApplication and | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  |                 macfreeze.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \section{\module{py_resource} --- Resources from Python code} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \declaremodule[pyresource]{standard}{py_resource} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Helper to create \texttt{'PYC~'} resources for compiled | 
					
						
							|  |  |  |                 applications.} | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-10-01 17:04:10 +00:00
										 |  |  | This module is primarily used as a help module for | 
					
						
							|  |  |  | \program{BuildApplet} and \program{BuildApplication}.  It is able to | 
					
						
							|  |  |  | store compiled Python code as \texttt{'PYC~'} resources in a file. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{cfmfile} --- Code Fragment Resource module} | 
					
						
							|  |  |  | \declaremodule{standard}{cfmfile} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Code Fragment Resource module.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \module{cfmfile} is a module that understands Code Fragments and the | 
					
						
							|  |  |  | accompanying ``cfrg'' resources. It can parse them and merge them, and is | 
					
						
							|  |  |  | used by BuildApplication to combine all plugin modules to a single | 
					
						
							|  |  |  | executable. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | \section{\module{icopen} --- Internet Config replacement for \method{open()}} | 
					
						
							|  |  |  | \declaremodule{standard}{icopen} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Internet Config replacement for \method{open()}.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Importing \module{icopen} will replace the builtin \method{open()} | 
					
						
							|  |  |  | with a version that uses Internet Config to set file type and creator | 
					
						
							|  |  |  | for new files. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-10-01 17:04:10 +00:00
										 |  |  | \section{\module{macerrors} --- Mac OS Errors} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \declaremodule{standard}{macerrors} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Constant definitions for many Mac OS error codes.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \module{macerrors} cotains constant definitions for many Mac OS error | 
					
						
							|  |  |  | codes. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{macfsn} --- NavServices calls} | 
					
						
							|  |  |  | \declaremodule{standard}{macfsn} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{NavServices versions of StandardFile calls.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \module{macfsn} contains wrapper functions that have the same API as | 
					
						
							|  |  |  | the \refmodule{macfs} StandardFile calls, but are implemented with | 
					
						
							|  |  |  | Navigation Services through the | 
					
						
							|  |  |  | \refmodule{Nav}\refbimodindex{Nav} module.  Importing it will replace | 
					
						
							|  |  |  | the methods in \refmodule{macfs}\refbimodindex{macfs} with these, if | 
					
						
							|  |  |  | Navigation Services is available on your machine. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | \section{\module{macresource} --- Locate script resources} | 
					
						
							|  |  |  | \declaremodule{standard}{macresource} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Locate script resources.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | \module{macresource} helps scripts finding their resources, such as | 
					
						
							|  |  |  | dialogs and menus, without requiring special case code for when the | 
					
						
							|  |  |  | script is run under MacPython, as a MacPython applet or under OSX Python. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-12 00:43:13 +00:00
										 |  |  | \section{\module{Nav} --- NavServices calls} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | \declaremodule{standard}{Nac} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Interface to Navigation Services.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | A low-level interface to Navigation Services.  | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \section{\module{mactty} --- Serial line connections} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \declaremodule{standard}{mactty} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Easy access serial to line connections.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-10-01 17:04:10 +00:00
										 |  |  | This module is only available under Mac OS 9 or earlier in classic PPC | 
					
						
							|  |  |  | MacPython. | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \section{\module{mkcwproject} --- Create CodeWarrior projects} | 
					
						
							|  |  |  | \declaremodule{standard}{mkcwproject} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Create CodeWarrior projects.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \module{mkcwproject} creates project files for the Metrowerks CodeWarrior | 
					
						
							|  |  |  | development environment. It is a helper module for | 
					
						
							|  |  |  | \refmodule{distutils}\refbimodindex{distutils} but can be used separately for more | 
					
						
							|  |  |  | control. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \section{\module{nsremote} --- Wrapper around Netscape OSA modules} | 
					
						
							|  |  |  | \declaremodule{standard}{nsremote} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Wrapper around Netscape OSA modules.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \module{nsremote} is a wrapper around the Netscape OSA modules that | 
					
						
							| 
									
										
										
										
											2001-04-10 20:32:16 +00:00
										 |  |  | allows you to easily send your browser to a given URL.  A related | 
					
						
							|  |  |  | module that may be of interest is the \module{webbrowser} module, | 
					
						
							|  |  |  | documented in the \citetitle[../lib/lib.html]{Python Library | 
					
						
							|  |  |  | Reference}. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \section{\module{PixMapWrapper} --- Wrapper for PixMap objects} | 
					
						
							|  |  |  | \declaremodule{standard}{PixMapWrapper} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Wrapper for PixMap objects.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \module{PixMapWrapper} wraps a PixMap object with a Python object that | 
					
						
							|  |  |  | allows access to the fields by name. It also has methods to convert | 
					
						
							|  |  |  | to and from \module{PIL} images. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \section{\module{preferences} --- Application preferences manager} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \declaremodule{standard}{preferences} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \modulesynopsis{Nice application preferences manager with support for | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  |                 defaults.} | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | The \module{preferences} module allows storage of user preferences in | 
					
						
							|  |  |  | the system-wide preferences folder, with defaults coming from the | 
					
						
							|  |  |  | application itself and the possibility to override preferences for | 
					
						
							|  |  |  | specific situations. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \section{\module{pythonprefs} --- Preferences manager for Python} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \declaremodule{standard}{pythonprefs} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | \modulesynopsis{Specialized preferences manager for the Python | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  |                 interpreter.} | 
					
						
							| 
									
										
										
										
											2001-07-10 14:19:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | This module is a specialization of the \refmodule{preferences} module | 
					
						
							|  |  |  | that allows reading and writing of the preferences for the Python | 
					
						
							|  |  |  | interpreter. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \section{\module{quietconsole} --- Non-visible standard output} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \declaremodule{standard}{quietconsole} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Buffered, non-visible standard output.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \module{quietconsole} allows you to keep stdio output in a buffer | 
					
						
							|  |  |  | without displaying it (or without displaying the stdout window | 
					
						
							|  |  |  | altogether, if set with \program{EditPythonPrefs}) until you try to read from | 
					
						
							|  |  |  | stdin or disable the buffering, at which point all the saved output is | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | sent to the window.  Good for programs with graphical user interfaces | 
					
						
							| 
									
										
										
										
											2001-07-14 02:09:32 +00:00
										 |  |  | that do want to display their output at a crash. | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \section{\module{videoreader} --- Read QuickTime movies} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | \declaremodule{standard}{videoreader} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Read QuickTime movies frame by frame for further processing.} | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \module{videoreader} reads and decodes QuickTime movies and passes | 
					
						
							|  |  |  | a stream of images to your program. It also provides some support for | 
					
						
							|  |  |  | audio tracks. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | \section{\module{W} --- Widgets built on \module{FrameWork}} | 
					
						
							|  |  |  | \declaremodule{standard}{W} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							| 
									
										
										
										
											2002-01-17 04:51:55 +00:00
										 |  |  | \modulesynopsis{Widgets for the Mac, built on top of \refmodule{FrameWork}.} | 
					
						
							| 
									
										
										
										
											2000-10-14 05:08:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | The \module{W} widgets are used extensively in the \program{IDE}. | 
					
						
							| 
									
										
										
										
											2001-09-11 21:24:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \section{\module{waste} --- non-Apple \program{TextEdit} replacement} | 
					
						
							|  |  |  | \declaremodule{standard}{waste} | 
					
						
							|  |  |  |   \platform{Mac} | 
					
						
							|  |  |  | \modulesynopsis{Interface to the ``WorldScript-Aware Styled Text Engine.''} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \begin{seealso} | 
					
						
							|  |  |  |   \seetitle[http://www.merzwaren.com/waste/]{About WASTE}{Information | 
					
						
							|  |  |  |             about the WASTE widget and library, including | 
					
						
							|  |  |  |             documentation and downloads.} | 
					
						
							|  |  |  | \end{seealso} | 
					
						
							|  |  |  | 
 |