in reply to
Perl Tk unable to return from MainLoop when implemented in a subroutine
If $mw isnt the only toplevel, mainloop wont end. See tk..wizard/dialog as mainloop not mandatory. Also lookup tkj::exit
Comment on
Re: Perl Tk unable to return from MainLoop when implemented in a subroutine
Replies are listed 'Best First'.
Re^2: Perl Tk unable to return from MainLoop when implemented in a subroutine
by
ngocanh
(Novice)
on Mar 24, 2016 at 06:01 UTC
Thanks! This solved my problem. I realised I was having another mainwindow open. Even though the 2 windows do not seem to be related, destroying the other window helped my to proceed with my script flow :)
[reply]
In Section
Seekers of Perl Wisdom