TFrame(3pm)
π Tk::TFrame β the Titled Frame widget π
okay bestie, so this is a Perl module called Tk::TFrame, and it lives in the Tk:: namespace (iykyk). It's a frame widget but make it β¨fancyβ¨ β it comes with a title. Let's get into it π
πΈ SYNOPSIS πΈ
here's how you actually use it, no cap:
use Tk::TFrame;
$frame1 = $parent->TFrame(
-label => [ -text => 'Title' ],
-borderwidth => 2,
-relief => 'groove',
);
# or simply
$frame2 = $parent->TFrame(
-label => 'Title'
);
$frame1->pack;
$frame2->pack;
so you've got two vibes here π¦ β the full-send version where -label is an arrayref with its own -text option, and the lowkey version where -label is just a plain string. both are valid, both slay. then you pack them like normal frames. periodt. π
β¨ DESCRIPTION β¨
Tk::TFrame gives you a frame β but with a title that overlaps the border by half of it's height. it's giving main character frame energy fr fr π
heads up: yes, the original really does say "it's height" β we keep the facts exactly as they are, typos and all, because that's the whole assignment π
π SEE ALSO π
Tk::LabFrameβ the other frame-with-a-label situation, go check it out π«Ά
π AUTHOR π
Graham Barr <gbarr@pobox.com> β an absolute icon, respect π
π 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. π
and that's the whole page bestie, you ate π
β¨ this was perl v5.32.1, dated 2021-11-06, and it's filed under TFrame(3pm). go build something cute with it ππ¦π
π¦ 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