->destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use warnings; use strict; use Tk; my $mw = MainWindow->new(); # oder new(-background => '#FFFFFF') my $b_yel = $mw->Button( -command => [sub{$mw->configure(-background => '#FFFF00')}], -text => 'Gelb' )->pack(); my $b_mag = $mw->Button( -command => [sub{$mw->configure(-background => '#FF00FF')}], -text => 'Magenta' )->pack(); $mw->configure(-background => '#FFFFFF'); MainLoop();
2011-11-16T08:41:38 a_abelsdas ist es: die configure Funktion.