in reply to Content of Perl/Tk Fixed-Width Text Label is Always Centred!?

Maybe the pack-option -anchor does what you want...

my $lbl = $mw->Label( # File -text => '(start)', # -width => 12, -background => 'bisque', # -justify => 'left', -relief => 'groove', ) ->pack(-side => 'top', -anchor => 'w');

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Replies are listed 'Best First'.
Re^2: Content of Perl/Tk Fixed-Width Text Label is Always Centred!?
by herveus (Prior) on Mar 29, 2006 at 12:04 UTC
    Howdy!

    anchor is the option you want, but on the Label itself.

    yours,
    Michael
Re^2: Content of Perl/Tk Fixed-Width Text Label is Always Centred!?
by ozboomer (Friar) on Mar 29, 2006 at 09:34 UTC
    Good try... but no cigar :)

    Your suggestion moves the label to the left side/top edge of the main window... but the initial content (and the re-configured content) is still in the centre of the fixed-width label.

    Fanx! ...but still researching...