in reply to Question on Tk Entry
This is the whole program: it puts up an Entry and a Button; when you push the button, it prints whatever is in the entry at that moment. See if it does that for you.
use Tk; $main=MainWindow->new(); $main->Entry(-width => 20, -textvariable => \$regex, )->pack(); $main->Button(-text=>"Print me", -command => sub{ print "$regex\n" } )->pack(); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Question on Tk Entry
by Popcorn Dave (Abbot) on Apr 22, 2002 at 04:33 UTC |