Skip to main content

simgui

A simple GUI API (wrapper around PySide6) for Python learners to build simple yet interesting event driven apps.

a sample GUI app

It provides the following features:

  • Create labels, buttons, input fields and comboboxes.
  • Respond to events such as button clicks and input text changes.
  • Place such widgets on a grid layout easily.
  • All is done using simple function calls (no need to understand classes and objects).

With these a Python learner can make GUI apps like: pacman, spade invaders, etc.

How to use

Here is a sample GUI program.

from simgui import *

def on_ready():
    add_label("l1", "Name")
    add_input("i1", right=True)
    add_label("l2", "Job Title")
    add_input("i2", right=True)
    add_combo("cb1", cols=2)
    add_combo_item("cb1", "chicken")
    add_combo_item("cb1", "beef")
    add_combo_item("cb1", "beans")
    add_button("b1", "OK")
    add_button("b2", "Cancel", right=True)

def on_click_b1():
    set_label_text("l2", 333)

def on_edited_i1():
    set_input_text("i2", get_input_value("i1")+1)

def on_index_changed_cb1():
    print(get_combo_text("cb1")+" is selected")

start()  # must do this to kick start the app with the UI

Metadata

Release files for simgui 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simgui 1.5.2
File Size Uploaded Provenance Actions
simgui-1.5.2.tar.gz 20.2 kB Without provenance Details for simgui-1.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simgui 1.5.2
File Interpreter ABI Platform Actions
simgui-1.5.2-py3-none-any.whl Python 3 none any Details for simgui-1.5.2-py3-none-any.whl

Total release size: 39.8 kB

Release files / simgui-1.5.2.tar.gz

Download URL simgui-1.5.2.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa7b91ae265338a76795cf7c74f22db2c9f363da6815ea363c81a9046cd0e076
BLAKE2b-256 checksum
How to use checksums
5f316b48d610b68e0ec66006c454ee95ea7f93508ccf1de4b2755a2393e8b177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / simgui-1.5.2-py3-none-any.whl

Download URL simgui-1.5.2-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f9ed3679a72177cfb0fbde7a6f99540ef5c479286fa2059337a639d25e7fb7f
BLAKE2b-256 checksum
How to use checksums
48ca5bd512f3de2eebae75ebbc85dc2ffbb9c927c3046193be1f86c56a72572b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for simgui 1.5.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page