Using asyncio with Tkinter

Starting with Python 3.4, a new module named asyncio was introduced as a Python standard module.

The term Asyncio is made by adding two words: async + I/O. Async is about concurrency, which means doing more than one thing at a time. I/O, on the other hand, refers to handling I/O bound tasks. A bound task means the thing that keeps your program busy. If, for instance, you are doing computation-intensive math processing, the processor is taking most of the time—and it is, therefore, a CPU bound task. On the contrary, if you are waiting for a result from the network, result from the database, or an input from the user, the task is I/O bound.

So in a nutshell, the asyncio module provides concurrency, particularly for ...

Get Tkinter GUI Application Development Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.