blob: 355380861cd2123a14f868771a8eefde63af9c25 [file] [log] [blame]
Fred Drake3a0351c1998-04-04 07:23:21 +00001\section{Standard Module \module{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
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000018\begin{funcdesc}{defpanellist}{filename}
19Parses a panel description file containing S-expressions written by the
Fred Drakeaf8a0151998-01-14 14:51:31 +000020\emph{Panel Editor}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000021that accompanies the Panel Library and creates the described panels.
22It returns a list of panel objects.
23\end{funcdesc}
24
25\strong{Warning:}
26the Python interpreter will dump core if you don't create a GL window
27before calling
28\code{panel.mkpanel()}
29or
30\code{panel.defpanellist()}.
31
Fred Drake3a0351c1998-04-04 07:23:21 +000032\section{Standard Module \module{panelparser}}
Fred Drakebac354c1998-01-20 04:32:09 +000033\label{module-panelparser}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000034\stmodindex{panelparser}
35
36This module defines a self-contained parser for S-expressions as output
37by the Panel Editor (which is written in Scheme so it can't help writing
38S-expressions).
39The relevant function is
40\code{panelparser.parse_file(\var{file})}
41which has a file object (not a filename!) as argument and returns a list
42of parsed S-expressions.
43Each S-expression is converted into a Python list, with atoms converted
44to Python strings and sub-expressions (recursively) to Python lists.
45For more details, read the module file.
46% XXXXJH should be funcdesc, I think
47
Fred Drake3a0351c1998-04-04 07:23:21 +000048\section{Built-in Module \module{pnl}}
Fred Drakebac354c1998-01-20 04:32:09 +000049\label{module-pnl}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000050\bimodindex{pnl}
51
52This module provides access to the
Fred Drakeaf8a0151998-01-14 14:51:31 +000053\emph{Panel Library}
Fred Drakebac354c1998-01-20 04:32:09 +000054built by NASA Ames\index{NASA} (to get it, send e-mail to
55\code{panel-request@nas.nasa.gov}).
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000056All access to it should be done through the standard module
Fred Drakebac354c1998-01-20 04:32:09 +000057\code{panel}\refstmodindex{panel},
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000058which transparantly exports most functions from
59\code{pnl}
60but redefines
61\code{pnl.dopanel()}.
62
63\strong{Warning:}
64the Python interpreter will dump core if you don't create a GL window
65before calling
66\code{pnl.mkpanel()}.
67
68The module is too large to document here in its entirety.