Creating a slide show using tkinter

In this recipe, we will create a nice working slide show GUI using pure Python. We will see the limitations the core Python built-ins have, and then we will explore another available third-party module called Pillow, which extends the built-in functionality of tkinter in regards to image processing.

While the name Pillow might sound a little bit strange at first, it actually comes with a lot of history behind it.

We are only using Python 3.6 and above in this book. We are not going back to Python 2. Guido has expressed his decision to intentionally break backwards compatibility and decided that Python 3 is the future of Python programming.

For GUIs and images, the older line of Python 2 has a very powerful module named PIL, which stands for Python Image Library. This library comes with a very large amount of functionality, which, several years after the very successful creation of Python 3, has not been translated for Python 3.

Many developers still choose to use Python 2 instead of the future, as designed by the Benevolent Dictator of Python because Python 2 still has more libraries available.

That is a little bit sad. Fortunately, another imaging library has been created to work with Python 3.6 and it is named PIL plus something.

Pillow is not compatible with the Python 2 PIL library.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.119.170