start page | rating of books | rating of authors | reviews | copyrights

Book HomeMastering Perl/TkSearch this book

13.6. Widget Existence

To determine if a widget has been created and not destroyed, use Exists($widget):

if (Exists($widget)) {
   ...
}

Note the uppercase E on this method. The Exists method is different from the built-in Perl exists function. Make sure you don't confuse the two.



Library Navigation Links

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