FireButton(3pm)
β¨ FireButton β bestie, it's a button that just won't quit β¨
So this is the manual page for Tk::FireButton β a Perl/Tk widget, no cap. (The manual itself lives in the User Contributed Perl Documentation section, hence the 3pm vibe. π
)
πΈ NAME πΈ
Tk::FireButton β the Button that keeps invoking its callback while you're holding it down. It's giving "press and hold and it fires over and over". π
π SYNOPSIS π
use Tk::FireButton;
$fire = $parent->FireButton( ... );
# May/should change:
$w->Whatever(... -bitmap => $Tk::FireButton::INCBITMAP, ...);
$w->Whatever(... -bitmap => $Tk::FireButton::DECBITMAP, ...);
$w->Whatever(... -bitmap => $Tk::FireButton::HORIZINCBITMAP, ...);
$w->Whatever(... -bitmap => $Tk::FireButton::HORIZDECBITMAP, ...);
π¦ DESCRIPTION π¦
FireButton is-a Button widget β like, literally, check Tk::Button β except it keeps invoking the callback bound to it for as long as the <FireButton> stays pressed. Hold it down, it keeps going. Main character energy fr fr. π₯
Four bitmaps come pre-baked in this package so you don't have to go hunting:
$INCBITMAPand$DECBITMAPβ for vertical increment and decrement buttons β¬οΈβ¬οΈ$HORIZINCBITMAPand$HORIZDECBITMAPβ for horizontal increment and decrement buttons β¬ οΈβ‘οΈ
The methods that get you at these bitmaps are down below, iykyk. π
π SUPER-CLASS π
The FireButton widget-class is derived from the Button widget-class and inherits all the methods and options of its super-class (go look at Tk::Button). It's giving nepo baby but in a good way, it earned it. π
β¨ STANDARD OPTIONS β¨
FireButton supports all the standard options of a Button widget. For the details on those, hit up Tk::options. Nothing extra, nothing missing, periodt. π«Ά
π WIDGET-SPECIFIC OPTIONS π
Okay bestie, here's the stuff that's just for this widget:
- Name:
repeatDelayClass:RepeatDelaySwitch:-repeatdelayFallback:300(milliseconds) β How long it waits before the callback gets invoked the very first time, afterButton-1is pressed over the widget. So likeβ¦ a lil dramatic pause before the fireworks. β³ - Name:
repeatIntervalClass:RepeatIntervalSwitch:-repeatintervalFallback:100(milliseconds) β How long it waits between invocations of the callback bound to the widget with the"command"option. This is the beat it keeps dropping to. π΅
π CHANDED OPTION FALLBACK VALUES π
(Yes, the heading is spelled exactly like that in the original, and I am not touching it. Iconic typo behavior. π)
These options have fallback values that are different from the Button widget:
-padx => 0,
-pady => 0,
So it's a lil tighter around the edges than your standard Button. Slim fit. π§
π METHODS π
Same as for the Button widget. π
Additionally, there are four methods that hand you the names of the standard increment and decrement bitmaps:
INCBITMAPHORIZINCBITMAPDECBITMAPHORIZDECBITMAP
And here's the tea: subclasses of FireButton may override these methods to supply their own different increment and decrement bitmaps. Customize away, bestie. β¨
β ADVERTISED WIDGETS β
None. That's it. That's the whole section. Not me giving you nothing but honesty. π
π HISTORY π
The code was extracted from Tk::NumEntry and slightly modified by Achim Bohnet >ach@mpe.mpg.de>. The author of Tk::NumEntry is Graham Barr >gbarr@pobox.com>. And the current maintainer is Slaven Rezic >slaven@rezic.de>.
Shoutout to the ancestors of this widget, fr fr. π«Ά
And that's a wrap on the FireButton lore! This page ships withperl v5.32.1, dated2021-11-06, and the manual name isFireButton(3pm)β now go hold a button down and watch it fire. Slay. π β¨π
π¦ 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