in reply to Re^2: Perl/Tk and exit(0)
in thread Perl/Tk and exit(0)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl/Tk and exit(0)
by saw55 (Novice) on Apr 03, 2020 at 04:46 UTC | |
by tybalt89 (Monsignor) on Apr 03, 2020 at 06:37 UTC | |
by saw55 (Novice) on Apr 03, 2020 at 11:13 UTC | |
by AnomalousMonk (Archbishop) on Apr 03, 2020 at 20:33 UTC | |
by soonix (Chancellor) on Apr 04, 2020 at 09:33 UTC |