Book HomeMastering Perl/TkSearch this book

13.15. Destroying a Widget

You can destroy a widget by calling destroy on the widget (using if Tk::Exists is recommended):

$widget->destroy if Tk::Exists($widget);

If the widget is a parent of any other widgets, the other widgets are destroyed as well.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.