This method handles the option '-result'. It returns the current value
of the variable specified by -textvariable.
NumEntry
use NumEntry;
$widget = $parent->NumEntry(-textvariable => <ref to scalar>);
$result = $widget->cget(-result);
NumEntry provides a composite widget which allows the user to enter
integer value by
- typing a value on the keyboard
- pressing the increase or decrease buttons
- pressing the <up> or <down> keys
The programmer supplies the options
-textvariable ref to scalar (mandatory)
-minvalue minimum value, optional, default 0, scalar containing decimal value
-maxvalue maximum value, optional, default 1, scalar containing decimal value
-incvalue increment, optional default 1, scalar containing the decimal value
all widget options which are applicable to the Entry widget.
The referenced value should contain the initial value.
Options may be changed and/or inspected the usual way using configure and/or cget .
The resulting value may be got by means of
$widget->Subwidget('NumEntry')->get();
or
$widget->cget(-result);