Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Why does widget->destroy give the error Tk::Error widget was deleted before its visibility changed?by boleary (Scribe) |
on Jun 11, 2017 at 21:22 UTC ( [id://1192543]=note: print w/replies, xml ) | Need Help?? |
I am facing the same problem in several places in my application where I am using a menu bound to an hlist. I do not understand the proposed solution and how scoping plays a part In my application I am assigning the menu object to a hash element so that I can refer to it and try to destroy it when the window is going to close. like this:
I have recreated the problem with the originally posted example code, I changed the lines to make $pop_menu a global as suggested (and relisted below)
but I still get the same error:
Thomas said he withdrew his menu, but I tried that too with no success(maybe I don't know how) Can anyone share more insight into this error?
In Section
Seekers of Perl Wisdom
|
|