This repository provides a functional, pre-license version of the PySimpleGUI library for developers who need a free and unrestricted solution. The official PySimpleGUI library has recently transitioned to a paid license model, leaving many developers unable to access or use the library. This backup allows you to continue using the legacy version without any license requirements.
What is PySimpleGUI4?
PySimpleGUI is a Python library that simplifies the process of creating graphical user interfaces (GUIs). It abstracts away the complexity of underlying frameworks like Tkinter, Qt, WxPython, and Remi, offering a beginner-friendly, high-level API. With PySimpleGUI, you can build interactive desktop applications, file explorers, progress trackers, and more with minimal code.
Key Features of PySimpleGUI:
- Beginner-Friendly: Intuitive syntax, ideal for developers new to GUIs.
- Rich Component Library: Buttons, text inputs, sliders, progress bars, tables, and more.
- Cross-Platform: Runs seamlessly on Windows, macOS, and Linux.
- Dynamic Updates: Allows real-time updates to GUI elements during execution.
- Integration Ready: Supports Matplotlib, OpenCV, and other libraries for advanced functionality.
install
pip install PySimpleGUI4
How To Use PySimpleGUI4
import PySimpleGUI4 as sg
What is PySimpleGUI4 Used For?
PySimpleGUI4 is widely used in:
- Educational Projects: Helping beginners learn GUI development.
- Data Visualization: Embedding interactive charts and graphs.
- Automation Tools: Creating simple automation utilities with user interfaces.
- Prototyping: Quickly designing and testing application interfaces.
- Lightweight Desktop Apps: Developing small-scale tools with a minimal footprint.
Why Use PySimpleGUI4?
On [specific date of license change], the creator of PySimpleGUI announced a transition to a paid license model. As part of this change:
- A license key is now required to use any version installed via
pip. - Older, free versions of PySimpleGUI have been removed from the PyPI repository, preventing developers from simply downgrading to a previous version.
- Developers who rely on PySimpleGUI for personal projects, open-source software, or educational purposes are now locked out unless they pay for a license.
This repository offers a solution by providing a backup of the last free and functional version of PySimpleGUI.
6. Verify the Installation
You can verify that the legacy version is installed correctly by running a simple PySimpleGUI script:
import PySimpleGUI4 as sg
app = sg.PySimpleEvent()
def make_main_window() -> sg.Window:
task_list = [
sg.Frame(
"Tasks",
[
[sg.Input(key="lot", tooltip="此输入框输入后使用回车事件触发")],
[sg.Text(key="lot_txt")],
],
size=(400, 200),
)
]
status_bar = [sg.StatusBar("版本:"), sg.StatusBar("状态:")]
layout = [task_list, status_bar]
# 3.建窗口
return sg.Window("测试程式窗口", layout, return_keyboard_events=True)
@app.bind_event("lot")
def on_lot(window: sg.Window, values: dict):
lot = values["lot"]
window["lot_txt"].update(lot)
def main():
main_window = make_main_window()
app.run_event(main_window)
if __name__ == "__main__":
main()
Run the script to ensure that the GUI appears and functions as expected.
Release files for PySimpleGUI4 4.80.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysimplegui4-4.80.7.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysimplegui4-4.80.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.0 MB
Release files / pysimplegui4-4.80.7.tar.gz
| Download URL | pysimplegui4-4.80.7.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c2481cd1ea01d80f76146223aabf4efcee9b07b6e5b06556ac569f820201fbb
|
|
BLAKE2b-256 checksum How to use checksums |
e84ff44344a6008abe0ac530e1391fa216409e20925afffaaea9d5c3a55cafbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2025.
Transparency logRelease files / pysimplegui4-4.80.7-py3-none-any.whl
| Download URL | pysimplegui4-4.80.7-py3-none-any.whl |
|---|---|
| Size | 679.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6b64c6ca83a90f4bbe4b428aef624bae68d1517b6ac7a9349cc14d26ac227ec
|
|
BLAKE2b-256 checksum How to use checksums |
39137f8a0ca5ed6b61994e99f763ad67ae6d2b83436e4f534bccb2399d4c2968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2025.
Transparency log