in reply to how Tk wedgets interact?
#!/usr/local/bin/perl use Tk; use strict; my $mw = Tk::MainWindow->new(); my $entryv; my $msgv; my $entry = $mw->Entry(-textvariable => \$entryv)->pack(-side => 'top' +,-fill => 'x'); my $msg = $mw->Message(-textvariable => \$msgv)->pack(-side => 'top',- +fill => 'both'); $entry->bind('<Return>',sub {$msgv = uc($entryv)}); Tk::MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: how Tk wedgets interact?
by benlaw (Scribe) on Feb 08, 2002 at 07:46 UTC | |
by dreadpiratepeter (Priest) on Feb 08, 2002 at 13:05 UTC |