Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Using a Tk window within a functionby axis3x3 (Acolyte) |
on May 27, 2004 at 18:48 UTC ( [id://357009]=perlquestion: print w/replies, xml ) | Need Help?? |
axis3x3 has asked for the wisdom of the Perl Monks concerning the following question: Hi monks, I want to use a Tk window to ask a user a question inside a function, and then return their answer as the return value. Previously, I had code like this:
but this desn't work with Tk 804, so I need a better way of doing it. The above method makes me feel dirty as we are still inside that MainLoop call when we return. Is there some way to exit from MainLoop once it's started, or is there another cludge I can use?
Back to
Seekers of Perl Wisdom
|
|