Here are resources and additional documentation about Tkinter and virtual environments:
00:23 PySimpleGUI wraps portions of each of these other packages and makes them easier to use. However, each of the ports has to be installed separately. PySimpleGUI wraps the entirety of Tkinter, which comes with Python. It’s wrapped most of PySide2, but only a small portion of wxPython.
00:52 For more information about Tkinter, check out Python GUI Programming With Tkinter. Depending on which variant of PySimpleGUI you use, applications that you create with PySimpleGUI may not look native to their platform.
Installing PySimpleGUI. Installing the library is easy if you use
pip. For the purposes of this tutorial, you’ll learn how to install the regular PySimpleGUI port, which is a Tkinter variant. Here you can see it being installed onscreen.
01:37 This command will install PySimpleGUI to the Python environment you’re currently running. In my case, I’ve created a virtual environment, which allows more scope for experimentation with new packages without making permanent changes to your system Python installation.
If you’re unfamiliar with Python virtual environments, then you should read Python Virtual Environments: A Primer. If you prefer to try the PyQt variant, then you can use
pip install pysimpleguiqt instead.
Become a Member to join the conversation.