blob: 66ac2a887c71947a6de4d3e21b620fc0d3d905b7 [file] [log] [blame]
Fred Drake3a0351c1998-04-04 07:23:21 +00001\section{Standard Module \module{panel}}
Fred Drakeb91e9341998-07-23 17:59:49 +00002\declaremodule{standard}{panel}
3
4\modulesynopsis{None}
5
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00006
Fred Drakebac354c1998-01-20 04:32:09 +00007\strong{Please note:} The FORMS library, to which the
8\code{fl}\refbimodindex{fl} module described above interfaces, is a
9simpler and more accessible user interface library for use with GL
10than the \code{panel} module (besides also being by a Dutch author).
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000011
12This module should be used instead of the built-in module
Fred Drakebac354c1998-01-20 04:32:09 +000013\code{pnl}\refbimodindex{pnl}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000014to interface with the
Fred Drakeaf8a0151998-01-14 14:51:31 +000015\emph{Panel Library}.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000016
17The module is too large to document here in its entirety.
18One interesting function:
19
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000020\begin{funcdesc}{defpanellist}{filename}
21Parses a panel description file containing S-expressions written by the
Fred Drakeaf8a0151998-01-14 14:51:31 +000022\emph{Panel Editor}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000023that accompanies the Panel Library and creates the described panels.
24It returns a list of panel objects.
25\end{funcdesc}
26
27\strong{Warning:}
28the Python interpreter will dump core if you don't create a GL window
29before calling
30\code{panel.mkpanel()}
31or
32\code{panel.defpanellist()}.
33
Fred Drake3a0351c1998-04-04 07:23:21 +000034\section{Standard Module \module{panelparser}}
Fred Drakeb91e9341998-07-23 17:59:49 +000035\declaremodule{standard}{panelparser}
36
37\modulesynopsis{None}
38
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000039
40This module defines a self-contained parser for S-expressions as output
41by the Panel Editor (which is written in Scheme so it can't help writing
42S-expressions).
43The relevant function is
44\code{panelparser.parse_file(\var{file})}
45which has a file object (not a filename!) as argument and returns a list
46of parsed S-expressions.
47Each S-expression is converted into a Python list, with atoms converted
48to Python strings and sub-expressions (recursively) to Python lists.
49For more details, read the module file.
50% XXXXJH should be funcdesc, I think
51
Fred Drake3a0351c1998-04-04 07:23:21 +000052\section{Built-in Module \module{pnl}}
Fred Drakeb91e9341998-07-23 17:59:49 +000053\declaremodule{builtin}{pnl}
54
55\modulesynopsis{None}
56
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000057
58This module provides access to the
Fred Drakeaf8a0151998-01-14 14:51:31 +000059\emph{Panel Library}
Fred Drakebac354c1998-01-20 04:32:09 +000060built by NASA Ames\index{NASA} (to get it, send e-mail to
61\code{panel-request@nas.nasa.gov}).
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000062All access to it should be done through the standard module
Fred Drakebac354c1998-01-20 04:32:09 +000063\code{panel}\refstmodindex{panel},
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000064which transparantly exports most functions from
65\code{pnl}
66but redefines
67\code{pnl.dopanel()}.
68
69\strong{Warning:}
70the Python interpreter will dump core if you don't create a GL window
71before calling
72\code{pnl.mkpanel()}.
73
74The module is too large to document here in its entirety.