blob: c54641275a5cc5005518c5fd6094b828db9797ce [file] [log] [blame]
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00001\section{Standard Module \sectcode{panel}}
Guido van Rossume47da0a1997-07-17 16:34:52 +00002\label{module-panel}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00003\stmodindex{panel}
4
Fred Drakebac354c1998-01-20 04:32:09 +00005\strong{Please note:} The FORMS library, to which the
6\code{fl}\refbimodindex{fl} module described above interfaces, is a
7simpler and more accessible user interface library for use with GL
8than the \code{panel} module (besides also being by a Dutch author).
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00009
10This module should be used instead of the built-in module
Fred Drakebac354c1998-01-20 04:32:09 +000011\code{pnl}\refbimodindex{pnl}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000012to interface with the
Fred Drakeaf8a0151998-01-14 14:51:31 +000013\emph{Panel Library}.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000014
15The module is too large to document here in its entirety.
16One interesting function:
17
18\renewcommand{\indexsubitem}{(in module panel)}
19\begin{funcdesc}{defpanellist}{filename}
20Parses a panel description file containing S-expressions written by the
Fred Drakeaf8a0151998-01-14 14:51:31 +000021\emph{Panel Editor}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000022that accompanies the Panel Library and creates the described panels.
23It returns a list of panel objects.
24\end{funcdesc}
25
26\strong{Warning:}
27the Python interpreter will dump core if you don't create a GL window
28before calling
29\code{panel.mkpanel()}
30or
31\code{panel.defpanellist()}.
32
33\section{Standard Module \sectcode{panelparser}}
Fred Drakebac354c1998-01-20 04:32:09 +000034\label{module-panelparser}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000035\stmodindex{panelparser}
36
37This module defines a self-contained parser for S-expressions as output
38by the Panel Editor (which is written in Scheme so it can't help writing
39S-expressions).
40The relevant function is
41\code{panelparser.parse_file(\var{file})}
42which has a file object (not a filename!) as argument and returns a list
43of parsed S-expressions.
44Each S-expression is converted into a Python list, with atoms converted
45to Python strings and sub-expressions (recursively) to Python lists.
46For more details, read the module file.
47% XXXXJH should be funcdesc, I think
48
49\section{Built-in Module \sectcode{pnl}}
Fred Drakebac354c1998-01-20 04:32:09 +000050\label{module-pnl}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000051\bimodindex{pnl}
52
53This module provides access to the
Fred Drakeaf8a0151998-01-14 14:51:31 +000054\emph{Panel Library}
Fred Drakebac354c1998-01-20 04:32:09 +000055built by NASA Ames\index{NASA} (to get it, send e-mail to
56\code{panel-request@nas.nasa.gov}).
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000057All access to it should be done through the standard module
Fred Drakebac354c1998-01-20 04:32:09 +000058\code{panel}\refstmodindex{panel},
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000059which transparantly exports most functions from
60\code{pnl}
61but redefines
62\code{pnl.dopanel()}.
63
64\strong{Warning:}
65the Python interpreter will dump core if you don't create a GL window
66before calling
67\code{pnl.mkpanel()}.
68
69The module is too large to document here in its entirety.