Window = sg.Window("Image Viewer", layout) ![]() Then add this code to the file: # image_viewer.py To see how, create a new file and name it image_viewer.py. PySimpleGUI lets you create a simple image viewer in less than 50 lines. Now that you have your dependencies installed, you can create a brand new application! Creating an Image Viewer You will also need Pillow because Tkinter only supports GIF and PGM/PPM image types.įortunately, you can install both of these packages easily with pip: python3 -m pip install PySimpleGUI Pillow You need to install PySimpleGUI as it is not included with Python. You will be using the regular version of PySimpleGUI, which wraps Tkinter, rather than its wxPython or PyQt variants. ![]() In this tutorial, you will learn how to use PySimpleGUI to create a simple Image Viewer. PySimpleGUI makes creating applications easy.
0 Comments
Leave a Reply. |