Tk::NumEntryPlain3pm
A numeric entry widget
Usage
use Tk::NumEntryPlain;
Overview
Tk::NumEntryPlain defines a widget for entering integer numbers.
Tk::NumEntryPlain supports all the options and methods that a normal Entry widget provides, plus the following options
Options
-repeatdelay -repeatinterval
Options
-
-minvalue -
Defines the minimum legal value that the widget can hold. If this value is
"undef"then there is no minimum value (default = undef).
-
-maxvalue -
Defines the maximum legal value that the widget can hold. If this value is
"undef"then there is no maximum value (default = undef).
-
-bell -
Specifies a boolean value. If true then a bell will ring if the user attempts to enter an illegal character into the entry widget, and when the user reaches the upper or lower limits when using the up/down buttons for keys (default = true).
-
-textvariable -
Reference to a scalar variable that contains the value currently in the
NumEntry. Use the variable only for reading (see "CAVEATS" below).
-
-value -
Specifies the value to be inserted into the entry widget. Similar to the standard
-textoption, but will perform a range check on the value.
-
-command -
A callback which is called if <Return> is pressed.
-
-browsecmd -
A callback which is called every time an increment or decrement happens in the entry widget.
Widget methods
- $numentry->
incdec(increment) -
Increment the value of the entry widget by the specified increment. If increment is 0, then perform a range check.
Caveats
- -textvariable
-
-textvariableshould only be used to read out the current value in theNumEntry.Values set via
-textvariableare not valided. Therefore it's possible to insert, e.g., 'abc', into theNumEntry.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.