in reply to Perl/TK Database
for example:
#!/usr/local/bin/perl use Tk; my $mw = MainWindow->new(); $button = $mw->Button(-text => "hello", -activebackground => 'red', -command => \&printit)->pack(); MainLoop; sub printit { $button->configure(-text => "you pressed me"); }
Justin Eltoft
|
|---|