Skip to main content

The free-forever and simple Python GUI framework

Project description

User Interfaces for Humans

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:

  1. A license key is now required to use any version installed via pip.
  2. Older, free versions of PySimpleGUI have been removed from the PyPI repository, preventing developers from simply downgrading to a previous version.
  3. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysimplegui4-4.80.7.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysimplegui4-4.80.7-py3-none-any.whl (679.5 kB view details)

Uploaded Python 3

File details

Details for the file pysimplegui4-4.80.7.tar.gz.

File metadata

  • Download URL: pysimplegui4-4.80.7.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysimplegui4-4.80.7.tar.gz
Algorithm Hash digest
SHA256 5c2481cd1ea01d80f76146223aabf4efcee9b07b6e5b06556ac569f820201fbb
MD5 3d02a2f59592948e9cb25833bdae8a03
BLAKE2b-256 e84ff44344a6008abe0ac530e1391fa216409e20925afffaaea9d5c3a55cafbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysimplegui4-4.80.7.tar.gz:

Publisher: python-publish.yml on yunluo/PySimpleGUI4

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysimplegui4-4.80.7-py3-none-any.whl.

File metadata

  • Download URL: pysimplegui4-4.80.7-py3-none-any.whl
  • Upload date:
  • Size: 679.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysimplegui4-4.80.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b6b64c6ca83a90f4bbe4b428aef624bae68d1517b6ac7a9349cc14d26ac227ec
MD5 6c77555bbd8313bd1ad543518312b75a
BLAKE2b-256 39137f8a0ca5ed6b61994e99f763ad67ae6d2b83436e4f534bccb2399d4c2968

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysimplegui4-4.80.7-py3-none-any.whl:

Publisher: python-publish.yml on yunluo/PySimpleGUI4

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page