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 is undef, 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 is undef, 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 -text option, 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 β€” -textvariable should 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::NumEntry
  • Tk::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 (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