list(parent, types, names, values, values, defaults, options, allowunset, editable, hlp)
Description
Constructs a widget for a list of guienty widgets. This allows
one to construct a list of made up of elements each
containing one or more widgets. One may insert and get the
contents as usual.
The type of each widget is specified in the types argument. The
corresponding names are given in the names argument. These names
determine the names of the fields in the record returned by get. The
arguments for each widget are passed as records with the elements
taken in sequence (i.e. the names are immaterial. allowunset
and editable apply to all widgets.
Arguments
parent |
|
Parent of the menu |
|
|
Allowed: |
Tk frame |
types |
|
Types of widgets |
|
|
Allowed: |
String of valid widget names |
names |
|
Name to be attached to each widget |
|
|
Allowed: |
Vector String |
values |
|
Values to insert on start |
|
|
Allowed: |
Record of variables or unset |
values |
|
Values to insert on start |
|
|
Allowed: |
Record of variables or unset |
defaults |
|
Default values |
|
|
Allowed: |
Record of Variables or unset |
options |
|
options |
|
|
Allowed: |
Record of vector strings |
|
|
Default: |
'' |
allowunset |
|
Allow unset values |
|
|
Allowed: |
Boolean |
|
|
Default: |
T |
editable |
|
Is the entry editable by the user |
|
|
Allowed: |
Boolean |
|
|
Default: |
T |
hlp |
|
Popup help string |
|
|
Allowed: |
String |
|
|
Default: |
Unset |
Returns
guientry widget
Example
s := dge.list(f, types="string direction",
names="Source Direction", name='Source',
defaults=unset, values=[Source='No name', Direction=dm.direction()],
allowunset=T, editable=T);
print s.get();
[Source1=[Source=M87, Direction=[m0=[value=187.705929, unit=deg], m1=[value=12.3
91125, unit=deg], type=direction, refer=J2000]], Source2=[Source=OJ287, Directio
n=[m0=[value=133.703646, unit=deg], m1=[value=20.1085119, unit=deg], type=direct
ion, refer=J2000]], Source3=[Source=3C273B, Direction=[m0=[value=187.277917, uni
Next: guientry.done - Function
Up: guientry - Tool
Previous: guientry.untyped - Function
 
Contents
 
Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15