Tk::NumEntry(3pm)

Tk::NumEntry3pm

A numeric entry widget with inc. & dec. buttons

Usage

use Tk::NumEntry;

$parent->NumEntry(?-option=>value, ...?);

Overview

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

Tk::NumEntry supports all the options and methods that the plain NumEntry widget provides (see Tk::NumEntryPlain), plus the following options

Options

Besides the standard options of the Entry widget NumEntry supports:

-orient -repeatdelay -repeatinterval

The -orient option specifies the packing order of the increment and decrement buttons. This option can only be set at creation time.

Options

Name: buttons
Class: Buttons
Switch: -buttons
Fallback: 1

Boolean that defines if the inc and dec buttons are visible.

Switch: -readonly
Fallback: 0

If -readonly is set to a true value, then the value can only be changed by pressing the increment/decrement buttons. This option can only be set at creation time.

Widget methods

Subclasses of NumEntry may override the following methods to use different widgets for the composition of the NumEntry. These are: NumEntryPlainWidget (usually "NumEntryPlain"), FireButtonWidget (usually "FireButton", IncFireButtonWidget and DecFireButtonWidget. FireButtonWidget is used if IncFireButtonWidget or DecFireButtonWidget are not defined.

Acknowledgements

I would to thank Achim Bohnet <[email protected]> for all the feedback and testing. And for the splitting of the original Tk::NumEntry into Tk::FireButton, Tk::NumEntryPlain and Tk::NumEntry

Releases

10 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0–7
  4. 8–10
  5. 11
  6. 12–13

Author

Graham Barr <[email protected]>

Current maintainer is Slaven Rezic <[email protected]>.

From libtk-gbarr-perl 2.08-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.