PySimpleGUI Playground
Programs I use every day, written in PySimpleGUI
I'm a heavy Windows user. PySimpleGUI was written specifically to help me write a Windows program after I struggled to code using the normal GUI OO SDKs. It's the only way I know how to make programs for myself that I can use on Windows. Naturally, when I began experimenting with LLMs, I stuck with having all my tools written in PySimpleGUI, only this time I managed to partner up with a PySimpleGUI expert.
All of these programs were written over the past 10 weeks of me poking at Claude to see what it can do.... and wow, it can do. I wrote some myself a long time ago as Demo Programs and had Claude make them better. Several of these were written in the past couple of days. Often 5 or 10 minutes was all that was needed to write the complete app.
The Playground idea is to share what I think are some interesting designs in a place where it's clear these are AI-authored applications. The Toybox is the Demo Browser reimagined and polished. Have fun!
Installing
One pip command installs everything, including the Toybox - the program that shows you what's here and runs it:
python -m pip install --upgrade https://github.com/PySimpleGUI/psgplayground/zipball/main
psgplayground
Use python3 on Mac and Linux. If psgplayground isn't on your PATH, python -m psgplayground does the same thing.
You need Python 3.8 or later and PySimpleGUI 6. Most of the programs run anywhere; the ones marked Windows use the Win32 API.
The Toybox
Pick a section on the left and a program in the middle. On the right you'll see what it does and which packages it needs (green means installed). Run starts it, Edit opens the source in your editor, Install missing runs pip for you, Open folder takes you to the file. The three panes can be dragged to whatever widths you like; the window remembers them.
Built-in themes
The widgets (% CPU, % RAM, Clock, Pip Refresh) and PSG Dock carry their own 32 themes, 16 dark and 16 light, apart from PySimpleGUI's. Right-click one and pick a theme by its color chip in the Theme menu; it changes as you choose. Brightness... then makes that theme darker or lighter with a slider, so each theme comes in many shades. The Widget Template has all of it, ready for a widget of your own.
What's here
Paths are inside the psgplayground package - in this repo, or in site-packages once you've installed it.
Widgets
Small (optionally) always-on-top desktop widgets that sit in a corner and quietly keep you informed.
Tools
Everyday utilities - a program dock, a network scanner, chat search, a translator, screen and window inspectors, printer tools.
System Tray
Programs that live in the system tray, out of the way until you need them - right-click the icon for the menu.
Programming
Tools that help with PySimpleGUI programming - screenshot regression tests and a previewer for dark themes.
Music
MIDI piano practice tools. Plug in a MIDI keyboard, pick its port, play - every one of these listens and shows you something interesting and maybe even helpful. I use the Tempo and Harmony Wheel daily. I was using the Staff Trainer for a few weeks working on music theory.
There's one additional music application, Player Coach, that I use constantly when playing/practicing. I want to spend a little more time getting that one documented first.
| Program | What it does | Needs |
|---|---|---|
Piano Dynamics Monitor |
How hard you hit the keys, as a 1-10 loudness line that scrolls as you play - overall and per voice (bass / middle / top). Plays MIDI files too.Music/piano_dynamics_monitor.pyw |
mido, python-rtmidi |
Tempo Widget |
A 1970s-stereo VU meter that floats over everything and shows your tempo against the target. Collapses to a one-line strip.Music/tempo_widget.pyw |
mido, python-rtmidi |
Note Roll |
A live note roll: bar height = how long each key was held, color = loudness. Gaps, overlaps and pedal smears become visible.Music/note_roll.pyw |
mido, python-rtmidi |
Groove Lane |
Your timing against a metronome, note by note - early notes pushed left, late ones right. Triplet play-along mode, latency calibration.Music/groove_lane.pyw |
mido, python-rtmidi |
Run Tachometer |
Evenness of scales, arpeggios and trills with no metronome: notes per second on a dial, a bar per gap, the hiccups named.Music/run_tachometer.pyw |
mido, python-rtmidi |
Harmony Wheel |
Real-time chord and key detection on a circle of fifths, with roman numerals and a tension meter.Music/harmony_wheel.pyw |
mido, python-rtmidi |
Staff Trainer |
Flashcards on a grand staff answered on the piano - notes, intervals, triads, sevenths, short melodies. The next card deals itself.Music/staff_trainer.pyw |
mido, python-rtmidi |
Call and Response |
An ear and memory game: the piano plays a short phrase through MIDI out, you play it back. Levels up as you get cleaner.Music/call_response.pyw |
mido, python-rtmidi |
Duet Partner |
Plays along with you through the piano: echo, harmony, drone, bass and arpeggio reactions to whatever you play.Music/duet_partner.pyw |
mido, python-rtmidi |
Ripples |
An ambient visualizer - every note becomes an expanding ring. No numbers, no judgement.Music/ripples.pyw |
mido, python-rtmidi |
MIDI Link Tester |
How well a MIDI connection keeps time - USB against Bluetooth. Sends chords and scales, measures how rolled they arrive.Music/midi_link_tester.pyw |
mido, python-rtmidi |
Templates
Starting points that already follow the Playground conventions. Copy one and go.
How I write these
A few habits you'll see in every file:
- One file per program. A single
.pyw(no console window on Windows). Where two programs share a helper, it sits next to them. - Keys are constants.
K_NAME = '-NAME-'so my editor completes them; repeated elements useKT_NAME = lambda n: (K_NAME, n). - A VERSION and a change log at the top. The version shows somewhere in the window.
- A right-click menu with Edit Me / Version / Exit -
sg.MENU_RIGHT_CLICK_EDITME_VER_EXIT. - Keyboard everywhere. Scrollable areas take Up/Down, PgUp/PgDn, Home/End; Esc closes.
- No silent crashes.
main()is wrapped so an exception showssg.popup_error_with_tracebackinstead of vanishing (pythonw has no console). - Settings persist through
sg.user_settings- window position, last choices, tokens.
If you want the same for your own program, start from Templates/app_template.pyw.
For a desktop widget start from Templates/widget_template.pyw; for a window with its own title bar, Templates/titlebar_template.pyw.
Build your own
Every program here was written with an AI assistant, and the tricks that make them feel polished are small. The prompts folder has one page per trick - the frameless window, the draggable panes, the picture buttons, drag-to-reorder, drop-a-file, background work - each with a prompt you can paste into any chatbot and the few PySimpleGUI calls it needs to get right.
About this repo
Like all PySimpleGUI repos, pull requests aren't taken. Have a question or problem? Feel free to open an issue.
dev/ holds the tools I use to copy the programs in from my working folders and build this README; it isn't part of the Playground.
License
LGPL 3 - see LICENSE.
Metadata
Release files for psgplayground 1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| psgplayground-1.12.tar.gz | 4.5 MB | Without provenance | Details for psgplayground-1.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psgplayground-1.12-py3-none-any.whl | Python 3 | none | any | Details for psgplayground-1.12-py3-none-any.whl |
Total release size: 9.0 MB
Release files / psgplayground-1.12.tar.gz
| Download URL | psgplayground-1.12.tar.gz |
|---|---|
| Size | 4.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beb08dd252058d0e124f2de6ef324373192b9b514388bd096e295707cd22c948
|
|
BLAKE2b-256 checksum How to use checksums |
d283baf0b1cb35ccecd73ab34f9c1015a8226db6a99670d27b900b5dff0912d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / psgplayground-1.12-py3-none-any.whl
| Download URL | psgplayground-1.12-py3-none-any.whl |
|---|---|
| Size | 4.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0254f1afc0adcb2549ceadc5a8e974ac8116ca4510dc1ecafb6a4e12c30cb26e
|
|
BLAKE2b-256 checksum How to use checksums |
2a1488cae4850a08649ae22b6472d4d6397f464dce989769b03490a7a58edb77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for psgplayground 1.12
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.