PySimpleGUI is a Python package that enables creating simple, cross-platform GUIs with ease. It wraps tkinter, Qt, WxPython, and Remi (web) into a unified API. Current version is 6.0, released in 2026 under LGPL3. New major version with significant API changes and improved theming.
pip install PySimpleGUIVerified import paths — ran on the pinned version, not inferred.
Creates a simple window with a text and a button. Uses the standard event loop pattern.
Update theme calls to new API: use sg.theme('DarkBlue3') instead of sg.SetOptions(background_color='...'). Check release notes for full list of changes.In event loop, explicitly break when event is 'OK' or sg.WIN_CLOSED.
Always call window.close() after the event loop ends. Use try/finally or context manager if available (not in standard API).
Ensure you installed PySimpleGUI with correct casing: pip install PySimpleGUI (case-sensitive on some systems). Then use import PySimpleGUI as sg.
Add 'import PySimpleGUI as sg' at the top of your script.
No dependency data recorded yet.