weltyj has asked for the wisdom of the Perl Monks concerning the following question:

I ran across a code snippet last week that would put the label for a Tk frame literally on the frame border. Of course, I didn't save the code, and several hours of googling and searching here have been fruitless. If anyone knows where this code snippet is or has a similar example could you share?

Thanks, Jeff Welty
  • Comment on Perl/Tk Positioning frame label on top edge of frame

Replies are listed 'Best First'.
Re: Perl/Tk Positioning frame label on top edge of frame
by Django (Pilgrim) on Jun 08, 2004 at 20:04 UTC

    Do you mean the LabFrame?

    use Tk; use Tk::LabFrame; my $main = MainWindow->new(); $main->LabFrame( -label => 'fubar', -labelside => 'acrosstop' )->pack; MainLoop;

    -- Django
    "Why don't we ever challenge the spherical earth theory?"

      Most excellent. That works perfectly. Thanks!