May 2017
Beginner to intermediate
444 pages
11h 31m
English
While there is a start method to make threads run, surprisingly there isn't really an equivalent stop method.
In this recipe, we are running a method in a thread, which prints numbers to our ScrolledText widget.
When we exit our GUI, we are no longer interested in the thread that used to print to our widget, so by turning the thread into a daemon, we can exit our GUI cleanly.
Read now
Unlock full access