Think about Loose Coupling | |
PerlMonks |
How do I determine if a Tk window exists?by FireBird34 (Pilgrim) |
on Jan 02, 2004 at 05:14 UTC ( [id://318242]=perlquestion: print w/replies, xml ) | Need Help?? |
FireBird34 has asked for the wisdom of the Perl Monks concerning the following question:
I'm coding an application that requires a status bar. After some problems, I was able to get that working, however I again run into a new problem (suprise suprise! lol). I have the status bar in a new Tk window for convienence sake, however while the status bar is doing it's update, and the window is shut down, I get a nice error. ie:
#some code here $status_bar->update; #more code here #user action: shut down $status_bar error: Tk::Error Usage $widget->update(...) And so forth Point being, how do I test to see if $status_bar actually exists before the update code is run? This way, I could at least counter it in some way, without having to deal with nasty error messages?
Back to
Seekers of Perl Wisdom
|
|