tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:
I wonder now: How is it possible to make the values from array @arr automaticaly appear in the scrollwindow when the program is run? I would be thankfull for any help.#!/usr/bin/perl -w use strict; use Tk; my @arr=(100, 200, 300, 400 , 500); my $maincolor='red'; my $mw = MainWindow->new; $mw->minsize(qw(250 200)); #x y $mw->configure(-title=>'PROGRAM', -background=>$maincolor); my $frame_6=$mw->Frame(-borderwidth => 3, -background => $maincolor)-> +pack( -side=>'top', -fill=>'x'); $frame_6->Label(-text => 'Scroll', -background=>'yellow',)->pack(-side + =>'left'); my $scroll=$mw->Scrolled("Text", -scrollbars => 'e', -font => 'normal' +, -width => 10, -height => 10,)->pack; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array to scroll..
by zentara (Cardinal) on Jul 27, 2006 at 13:38 UTC | |
by Anonymous Monk on Jul 27, 2006 at 14:06 UTC | |
|
Re: Array to scroll..
by reneeb (Chaplain) on Jul 27, 2006 at 13:51 UTC | |
|
Re: Array to scroll..
by rinceWind (Monsignor) on Jul 27, 2006 at 13:55 UTC | |
by tamaguchi (Pilgrim) on Jul 27, 2006 at 15:34 UTC | |
by zentara (Cardinal) on Jul 27, 2006 at 16:04 UTC |