4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use strict;
use Tk;
my $main = new MainWindow(-title => "Cooles Ding");
my $label = $main->Label(-text => "Cooles Ding")->pack();
my $outputframe = $main->Text(width => 80, height => 10)->pack();
my $exit_button = $main->Button(-text => "Beenden",
-command => sub {exit} )->pack(-fill => "x");
my $start_button = $main->Button(-text => "Berechnen",
-command => sub {my $output=cap(); $outputframe->insert($output,"insert");} )->pack(-fill => "x");
MainLoop;
sub cap { ... rechne rechne rechne ... }
$t->insert('Sample', '2.5');
4 Einträge, 1 Seite |