in reply to Dynamically destroying a window in Tk?

Well, first of all, without knowing if your Perl/TK call to destroy works, I can see that your call to quit() has problems.

You shouldn't use single quotes, or you'll pass the literal string '$windowname' to your function. It looks like you want to pass in the value of the $windowname variable instead. Remove the single quotes from the function call, and try again. :-)

Good luck!

--
Ytrew Q. Uiop

  • Comment on Re: Dynamically destroying a window in Tk?

Replies are listed 'Best First'.
Re^2: Dynamically destroying a window in Tk?
by Spidy (Chaplain) on Dec 05, 2004 at 23:27 UTC
    I tried to do that, and it didn't work. I'm trying to pass the actual variable, not it's contents, so that I can use destroy on the variable. If that made any sense.