in reply to Perl/TK Database
I hope this clarifies it...#!/usr/bin/perl -w use strict; use Tk; my $mainwindow = MainWindow->new(); my $label = $mainwindow->Label(-text => "This is before you press the +button") ->pack(); my $button = $mainwindow->Button( -text => "press to change the lab +el", -command => sub { $label->configure(-text => "This changed t +he label") } )->pack(); MainLoop();
|
|---|