in reply to Tk question
This will call ok($win) whenever the OK button is triggered (In general, \&ok is clearer than sub { ok() }). ok() then becomes:$win->Button(-text => 'OK', -command => [\&ok, $win])->pack;
sub ok { my $win = shift; $win->destroy; $notified = 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tk question
by graff (Chancellor) on Nov 14, 2003 at 06:04 UTC |