NumEntry(3pm)
π NAME π
Tk::NumEntry β a numeric Entry widget that comes with inc. & dec. buttons, bestie. it's giving β¨spinbox but make it Tkβ¨
π¦ SYNOPSIS π¦
use Tk::NumEntry;
$parent->NumEntry(?-option=>value, ...?);
πΈ DESCRIPTION πΈ
okay so Tk::NumEntry is literally a widget for typing in integer numbers. and it doesn't just sit there looking cute β it also has buttons for increment and decrement, so you can bump the number up or down without touching your keyboard. iconic behavior tbh π
Tk::NumEntry supports all the options and methods that the plain NumEntry widget provides (go look at Tk::NumEntryPlain, iykyk), plus the following options:
β STANDARD OPTIONS β
besides the standard options of the Entry widget, NumEntry also supports:
-orient-repeatdelay-repeatinterval
the -orient option specifies the packing order of the increment and decrement buttons. and listen β this one can only be set at creation time. no takebacksies, periodt. π
π WIDGET-SPECIFIC OPTIONS π
- Name:
buttons - Class:
Buttons - Switch:
-buttons - Fallback:
1
a 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. and bestie, same as before: 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")IncFireButtonWidgetDecFireButtonWidget
FireButtonWidget is used if IncFireButtonWidget or DecFireButtonWidget are not defined.
π AUTHOR π
Graham Barr <gbarr@pobox.com>
current maintainer is Slaven Rezic <slaven@rezic.de>. π«Ά
π ACKNOWLEDGEMENTS π
I would to thank Achim Bohnet <ach@mpe.mpg.de> for all the feedback and testing. and for the splitting of the original Tk::NumEntry into Tk::FireButton, Tk::NumEntryPlain and Tk::NumEntry. a real one fr fr π
π 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.
except the typo's, they blong to Achim :-) π
and that's the whole page, bestie β brought to you by perl v5.32.1, dated 2021-11-06, and it lives in the manual as NumEntry(3pm). slay, go write some widgets π
π¦ 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