measurecodes(parent, value, default, options, type, allowunset, editable, hlp)
Description
Constructs a widget for the entry of measures reference codes. For each
type of measure there is a corresponding list of reference codes. For
example, dm.listcodes(dm.frequency()) gives the list for
a 'frequency' measure.
The allowed formats for user input (i.e. for value
and default) are:
- A measure code as drawn from the list of possible codes
returned by the measures tool (see above).
- The name of Glish variable or function that evaluates to a
measure code.
Use options to specify the measure type (see Measures)
for the current known list (e.g. 'frequency', 'doppler', 'direction' etc).
Arguments
parent |
|
Parent of the menu |
|
|
Allowed: |
Tk frame |
value |
|
Value to insert on start |
|
|
Allowed: |
Variable or unset |
default |
|
Default value |
|
|
Allowed: |
Variable |
options |
|
type of measure: any valid measure |
|
|
Allowed: |
string |
|
|
Default: |
'' |
type |
|
Type of argument: unset means to evaluate |
|
|
Allowed: |
Variable |
|
|
Default: |
unset |
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 |