in reply to RE: Re: pTk popup not returning value and not locking calling window
in thread pTk popup not returning value and not locking calling window

I'm not a TK guy, but looking at your code, this would occur if $idx wasn't defined. Have you put some debug code at the point to make sure you know which path your're taking on the if (defined $idx) statement?

--Chris

e-mail jcwren

Replies are listed 'Best First'.
RE: (jcwren) Re: (3) pTk popup not returning value and not locking calling window
by el-moe (Scribe) on Oct 10, 2000 at 01:43 UTC
    I removed the debugging print statements before I posted here. Everything is set as I expect it to be within this section of code... but the popup doesn't wait... therefore, my calling window/program doesn't ever get the value I have selected.

    To get this project off of my plate I just grew my original window and placed the list into it. But I still have to understand what I'm doing incorrectly because, even though I don't have to use Tk very often, I still have some programs I've inherited that I must maintain. And they're chock full of pTk stuff.

    Thanks for the help.