NumEntryPlain(3pm)
π NAME π
Tk::NumEntryPlain β A numeric entry widget. This is the NumEntryPlain(3pm) manual page, and yes, she's iconic. π
π¦ SYNOPSIS π¦
use Tk::NumEntryPlain;
β¨ DESCRIPTION β¨
Tk::NumEntryPlain defines a widget for entering integer numbers. Periodt.
Tk::NumEntryPlain supports all the options and methods that a normal Entry widget provides, plus the following options. ...and yes, we're about to list them all, don't worry.
πΈ STANDARD OPTIONS πΈ
These are the standard options called out here:
-repeatdelay-repeatinterval
π WIDGET-SPECIFIC OPTIONS π
-minvalueβ This is the minimum legal value the widget can hold. If this value isundef, then there is no minimum value (default =undef). Lowkey a boundary queen. Slay.-maxvalueβ This is the maximum legal value the widget can hold. If this value isundef, then there is no maximum value (default =undef). Highkey same energy, opposite direction. Periodt.-bellβ Specifies a boolean value. If true, 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). So yes, she can be a little dramatic when you push her buttons. Vibe check passed.-textvariableβ Reference to a scalar variable that contains the value currently in the NumEntry. Use the variable only for reading (see "CAVEATS" below). Don't try to write through it, bestie, it's not that kind of relationship. Ngl.-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. So it's giving-text, but with boundaries. She ate.-commandβ A callback which is called if<Return>is pressed. Hit enter, she calls you back. Iykyk.-browsecmdβ A callback which is called every time an increment or decrement happens in the entry widget. Every little up-and-down gets noticed, fr fr.
π 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. Yes, zero still does something important: it makes her check the range.
π CAVEATS π
-textvariableβ-textvariableshould only be used to read out the current value in the NumEntry.
Values set via -textvariable are not valided. Therefore it's possible to insert, e.g., 'abc', into the NumEntry. This is the "do not pass go, do not collect $200" zone. Reading only, bestie. No cap.
π₯ SEE ALSO π₯
Tk::NumEntryTk::Entry
π HISTORY π
The code was extracted from Tk::NumEntry and slightly modified by Achim Bohnet <ach@mpe.mpg.de>. Tk::NumEntry's author is Graham Barr <gbarr@pobox.com>.
Current maintainer is Slaven Rezic <slaven@rezic.de>. Shoutout to the maintainers keeping the lights on. Main character energy.
π COPYRIGHT π
Copyright (c) 1997-1998 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. Iconic, legal, and free software realness.
And that's the page, bestie! This cutie was served from perl v5.32.1, dated 2021-11-06, and it's literally NumEntryPlain(3pm) from the User Contributed Perl Documentation. πβ¨π¦
π¦ where this page comes from
- debian bookworm: libtk-gbarr-perl 2.08-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtk-gbarr-perl 2.08-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libtk-gbarr-perl 2.08-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtk-gbarr-perl 2.08-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtk-gbarr-perl 2.08-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtk-gbarr-perl 2.08-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms