in reply to Re^3: Perl Tk unable to return from MainLoop when implemented in a subroutine
in thread Perl Tk unable to return from MainLoop when implemented in a subroutine

I have spent more than 1 day on this bug and I have completely no idea why I have this problem. In my program there are also other subroutines which display popup windows but none of them have this problem. I notice that to display other pop-ups I used $main->Show;, probably that's why I never encountered this problem?

Is there any other way of displaying this selection box without having to write MainLoop; at all? So far I have tried 2 ways as shown in the code but they all hang. I'm using Perl 5.8.4 and I can't install any additional library.

Replies are listed 'Best First'.
Re^5: Perl Tk unable to return from MainLoop when implemented in a subroutine
by Anonymous Monk on Mar 23, 2016 at 19:42 UTC

    Try using Tk->exit