No such thing as a small change | |
PerlMonks |
Re^3: Perl/Tk and exit(0)by jcb (Parson) |
on Apr 03, 2020 at 01:56 UTC ( [id://11114970]=note: print w/replies, xml ) | Need Help?? |
All UI activity in Tk occurs in the Tk event loop. You are exiting the program from an event handler before returning control to the event loop. Try replacing that handler with sub {&checkDays; $mw->after(5000, sub {exit(0)});} and see Tk::after for more details.
In Section
Seekers of Perl Wisdom
|
|