NAME

Tk::NumEntry - A numeric entry widget

SYNOPSIS

use Tk::NumEntry;

DESCRIPTION

Tk::NumEntry defines a widget for entering integer numbers. The widget also contains butons for increment and decrement.

Tk::NumEntry supports all the options and methods that a normal Entry widget provides, plus the following options

STANDARD OPTIONS

-repeatdelay -repeatinterval

WIDGET-SPECIFIC 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.

-value

Specifies the value to be inserted into the entry widget. Similar to the standard -text option, but will perform a range check on the value.

AUTHOR

Graham Barr <gbarr@ti.com>

ACKNOWLEDGEMENTS

I would to thank Achim Bohnet <ach@mpe.mpg.de> for all the feedback and testing.

COPYRIGHT

Copyright (c) 1997 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.