davies has asked for the wisdom of the Perl Monks concerning the following question:
Nonsense I know about:use strict; use warnings; use diagnostics; use Tk; use Tk::Pane; use IO::Socket; my $nVOffset = 20; my $nHOffset = 18; my $wMain = MainWindow->new; $wMain->geometry('1020x700'); $wMain->toplevel->resizable(0,0); my $frame = $wMain->Scrolled('Frame', -scrollbars => 'e', -height => 680, -width => 1000) ->place(-x => 0, -y => 20); #== sub landing { use vars qw/$server $sock $port @data $whois/; $server = "whois.completewhois.com"; $port = "43"; my $target = "81.202.7.241"; $sock = IO::Socket::INET->new(PeerAddr=>$server,PeerPort=>$port,Prot +o=>'tcp'); print $sock $target,"\r\n"; @data = <$sock>; undef($sock); my $i = 1; my @chkReport; my @lblReport; for (@data) { $chkReport[$i] = $frame->Checkbutton() ->place(-x => 0, -y => $nHOffset * ($i + 1)); #== $lblReport[$i] = $frame->Label(-text => $_) ->place(-x => $nVOffset, -y => $nHOffset * ($i + 1)); #== $i++; } } my $bLanding = $wMain->Button(-text => 'Parse', -command => sub{landing}) ->place(-x => 500, -y => 0); #== MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scrolling data in Tk
by jdporter (Paladin) on Nov 20, 2007 at 12:45 UTC | |
by davies (Monsignor) on Nov 20, 2007 at 13:02 UTC | |
by jdporter (Paladin) on Nov 20, 2007 at 14:52 UTC | |
|
Re: Scrolling data in Tk
by zentara (Cardinal) on Nov 20, 2007 at 13:31 UTC |