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 (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