|
listenerCreate and manipulate listener widgets
SYNOPSIS(listener widget-name ?options?)WIDGET-SPECIFIC OPTIONS
DESCRIPTIONThe listener procedure creates a new text window (given by the widget-name argument) and associates it bindiangs suitable for a listener. Since a listener is in fact a text widget, all the options of text are applicable to a listener. The listener procedure returns its widget-name argument. At the time this procedure is invoked, there must not exist a window named widget-name, but widget-name's parent must exist.A listener is a widget for doing interactive I/O. Typical usage for this widget consists of a text window whose inputs are sent to the Scheme evaluator and whose result is displayed in the listener. An example for this is shown at the end of this page. WIDGET PROCEDUREAll the text procedure are avialble for a listener, plus
EXAMPLEHereafter is a simple use of the listener widget which interact with the evaluator.
(listener '.t :width 50 :height 10 :command (lambda (x) (eval-string x (global-environment)))) (pack .t)
DEFAULT BINDINGSThe defaults bindings are identical to the text bindings.SEE ALSOtext |