Jan-24-2022, 03:09 AM
The function is not calling itself. That would quickly run into the maximum recursion limit and the program would crash. Instead print_it() is telling root to call print_it() 100 milliseconds from now.
The reason your implementation didn't work is because after() only schedules a function to run once. Your program called PrintIt() 10 milliseconds after the it root.after() call, and nobody ever scheduled it to run again.
The reason your implementation didn't work is because after() only schedules a function to run once. Your program called PrintIt() 10 milliseconds after the it root.after() call, and nobody ever scheduled it to run again.