Thread Widgets ändern (3 answers)
Opened by J-jayz-Z at 2005-09-20 10:57

renee
 2005-09-20 11:05
#44597 #44597
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
use strict;
use warnings;

use Tk;

my $main = tkinit;
my $label = $main->Label(-text => 'Hallo')->pack();
$main->Button(-text => 'change', -command => [\&foo,$label])->pack();

MainLoop();

sub foo {
my ($label) = @_;
$label->configure(-text => 'blubb')->pack();
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Widgets ändern