3 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/local/bin/perl -w
use Tk;
$mw = MainWindow->new( );
$f = $mw->Frame->pack(-side => 'bottom', -fill => 'x');
$f->Button(-text=>"Ok" ,-command => sub { exit; } )->
pack(-side => 'top');
$t = $mw->Scrolled("Text", -foreground => "black", -background => "white",
-width => "50", -height => "50", -scrollbars=>'e' )
->pack (-side,'bottom', -fill => 'both', -expand => 1);
open (FH, "./test") || die "Die Datei kann nicht geoeffnet werden!";
$t->delete("1.0", "end");
while (<FH>)
{
$t->insert('end',$_);
}
close (FH);
MainLoop;
3 Einträge, 1 Seite |