[Python-checkins] CVS: python/dist/src/Doc/lib libcursespanel.tex,NONE,1.1

A.M. Kuchling python-dev@python.org
Fri, 22 Dec 2000 13:57:44 -0800

Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv20359

Added Files:
Log Message:
Added documentation for the panel wrapper module

--- NEW FILE: libcursespanel.tex ---
\section{\module{curses.panel} ---
         A panel stack extension for curses.}

\sectionauthor{A.M. Kuchling}{amk1@bigfoot.com}
\modulesynopsis{A panel stack extension that adds depth to 
                curses windows.}

Panels are windows with the added feature of depth, so they can be
stacked on top of each other, and only the visible portions of
each window will be displayed.  Panels can be added, moved up
or down in the stack, and removed. 

\subsection{Functions \label{cursespanel-functions}}

The module \module{curses.panel} defines the following functions:

Returns the bottom panel in the panel stack.

Returns a panel object, associating it with the given window \var{win}.

Returns the top panel in the panel stack.

Updates the virtual screen after changes in the panel stack. This does
not call \function{curses.doupdate()}, so you'll have to do this yourself.

\subsection{Panel Objects \label{curses-panel-objects}}

Panel objects, as returned by \function{new_panel()} above, are windows
with a stacking order. There's always a window associated with a
panel which determines the content, while the panel methods are
responsible for the window's depth in the panel stack.

Panel objects have the following methods:

Returns the panel above the current panel.

Returns the panel below the current panel.

Push the panel to the bottom of the stack.

Returns true if the panel is hidden (not visible), false otherwise.

Hide the panel. This does not delete the object, it just makes the
window on screen invisible.

\begin{methoddesc}{move}{y, x}
Move the panel to the screen coordinates \code{(\var{y}, \var{x})}.

Change the window associated with the panel to the window \var{win}.

Set the panel's user pointer to \var{obj}. This is used to associate an
arbitrary piece of data with the panel, and can be any Python object.

Display the panel (which might have been hidden).

Push panel to the top of the stack.

Returns the user pointer for the panel.  This might be any Python object.

Returns the window object associated with the panel.