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