Tickit::Widgets(3pm)
π Tickit::Widgets(3pm) β the group-chat shortcut for loading widgets π
okay bestie, so this is Tickit::Widgets from the 3pm manual section, and it's literally just a little convenience queen that loads a whole bunch of Tickit::Widget classes at once. no cap.
β¨ NAME β¨
Tickit::Widgets β load several Tickit::Widget classes at once π«Ά
πΈ SYNOPSIS πΈ
use Tickit::Widgets qw( Static VBox HBox );
and that right there? equivalent to:
use Tickit::Widget::Static;
use Tickit::Widget::VBox;
use Tickit::Widget::HBox;
likeβ¦ the way it saves you three whole lines?? iconic behaviour. π
π¦ DESCRIPTION π¦
so this module gives you an import utility, and its whole vibe is simplifying code that uses a ton of different Tickit::Widget subclasses. instead of writing a separate use line for every single module (exhausting, honestly), you just use this one module and hand it the base name of each class you want. it will require each of the modules for you. slay. β¨
heads up though π β because each Widget module should be a pure object class with no exports, this utility does not run the import method of the used classes. it's giving "we just load them, we don't do the export dance." periodt.
and ooh, you can also do an optional version check by using a = sign:
use Tickit::Widgets qw( HBox=0.48 VBox=0.48 );
version pinning?? we love to see it. π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β the main character who wrote this, fr fr. π
and that's the whole page, bestie, no filler, no notes. this lil' doc was served up by perl v5.40.0 on 2024-09-16, and honestly? a dated drop. π bye babes, go load some widgets πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: libtickit-widgets-perl 0.42-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtickit-widgets-perl 0.42-1 Β· 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