$win->Button(...-command=> sub {$win->destory} )... Works great, but I would like to have the sub work.Tk::Error AUTOLOAD 'Tk::Toplevel::destory' at line 97 Carp::croak at C:/usr/lib/Carp.pm line 191 Tk::Widget::__ANON__ at C:/usr/lib/Tk/Widget.pm line 338 main::Exit_Win at line 97 main::__ANON at line 82 [\&main::__ANON__ at line 82 Tk callback for .toplevel.frame2.button1 Tk::__ANON__ at C:/usr/lib/Tk.pm line 228 Tk::Button::butUp at C:/usr/lib/Tk/Button.pm line 111 [command bound to event]
In reply to Re: Re: Functions and Tk
by surrealistfashion
in thread Functions and Tk
by surrealistfashion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |