in reply to Re: Dynamically destroying a window in Tk?
in thread Dynamically destroying a window in Tk?
Yep, A reference allows you to pass the actual variable (contents and all, which is what you need) With the single quotes, you're basically passing an indirect reference (though not quite in the way that more or less works) and that's generally considered a Bad Thing. Try passing a real refernce as I mentioned in my last post, and let us know how/if that works.
I believe the sub will need altered a touch to, this should do it:
sub quit { $$_[0]->destroy; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Dynamically destroying a window in Tk?
by Spidy (Chaplain) on Dec 06, 2004 at 23:15 UTC | |
by castaway (Parson) on Dec 07, 2004 at 08:17 UTC | |
by Spidy (Chaplain) on Dec 07, 2004 at 23:28 UTC |