O'Reilly logo

Tkinter GUI Application Development Blueprints - Second Edition by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required