Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | guientry |
The allowed formats for user input are:
Make a widget for a scalar entry
Synopsis
scalar(parent, value, default, options, allowunset, editable, hlp)
Description
Constructs a widget for the entry of scalar values. The widget can
determine the type of the first entry (integer, double or complex) and
ensure that the type doesn't change. If neither the value nor the
default are set AND allowunset is false then the options argument
can be used to set the value that will actually be used as the initial
value.
Arguments
parent
Parent of the menu
Allowed:
Tk frame
value
Value to insert on start
Allowed:
String or unset
default
Default value used to determine type of GUI
Allowed:
String
options
options
Allowed:
Glish value
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
include 'guientry.g'
f := dws.frame();
ge := dws.guientry()
sangle := ge.scalar(f, value=pi/2);
sfloat := ge.scalar(f, options=0.0);
sint := ge.scalar(f, options=0);
Next: guientry.array - Function
Up: guientry - Tool
Previous: guientry - Constructor
  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