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

Does anyone know how to use the PLACE geometry manager in perl/tk? When I use it instead of pack, nothing shows up. Am I missing an option?
$tlframe->Label(-text=>$tlb)->place(-x=>0, -y=>0);

Replies are listed 'Best First'.
Re: Perl TK Geometry Manager Place
by GrandFather (Saint) on Apr 17, 2006 at 22:55 UTC

    The follwing works as expected for me:

    use strict; use warnings; use Tk; my $mw = MainWindow->new (-title => "Place demo"); $mw->Label (-text=> 'Some sample text')->place (-x=>0, -y=>0); MainLoop ();

    Perhaps you need to show a little more code. Something about as long at the sample that shows the probelm would be good.


    DWIM is Perl's answer to Gödel
      The grid option worked as I desired. Thanks!
Re: Perl TK Geometry Manager Place
by vkon (Curate) on Apr 17, 2006 at 22:36 UTC
    "place" should work just fine; I think you're trying to use two geometry managers at the same time, but show more code to be certain.