lions-pycard
lions-pycard is a Python HyperCard-like editor built with tkinter.
It provides a card-style canvas where you can place UI objects (Label, Button, Entry, Text), edit properties, save/load cards as JSON, and attach Python scripts to buttons.
Features
- Visual card editor with select/move/create tools
- Object types:
label,button,entry,text - Property editor (double-click objects in edit mode)
- Per-button Python scripting (
on_click_code) - Script helpers in execution context:
find_object_by_id(...)find_object_by_name(...)find_object_by_text(...)get_text(...)set_text(...)
- Card persistence to
.pycard/cards.json - Window size persistence
Repository
Install
pip install lions-pycard
Run
pycard
or:
python -m pycard
Basic Use
- Open
Window -> Edit Mode. - Use the detached
Toolswindow to choose an object type. - Click the card to create an object (auto-returns to
Select). - Double-click an object to edit properties.
- Use
File -> Saveto persist to.pycard/cards.json. - Turn off edit mode to run button scripts.
Example Button Script
target = find_object_by_name("status")
if target:
set_text(target, "Clicked!")
print("status text:", get_text("status"))
Development
Requirements:
- Python 3.10+
Commands:
python -m pytest -q
python -m py_compile src/pycard/app.py src/pycard/cli.py
License
MIT
Metadata
Release files for lions-pycard 0.1.1
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 |
|---|---|---|---|---|
| lions_pycard-0.1.1.tar.gz | 12.1 kB | Without provenance | Details for lions_pycard-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lions_pycard-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lions_pycard-0.1.1-py3-none-any.whl |
Total release size: 24.6 kB
Release files / lions_pycard-0.1.1.tar.gz
| Download URL | lions_pycard-0.1.1.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47e086bb8375af0a98fb6ca90d1b0bb4890f25b288765cf86071e6df0c995094
|
|
BLAKE2b-256 checksum How to use checksums |
5cca12dfc0c0f30152ec05b85e4daefaffa7da3f95f0ea41111ea49a5b65977a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / lions_pycard-0.1.1-py3-none-any.whl
| Download URL | lions_pycard-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e877a78d03faa1fa220315a177802762b06f2d180a28ad5b1fce99f4a60aeb0
|
|
BLAKE2b-256 checksum How to use checksums |
40d322ea999aeb225c58657677cfd0594d0d67716d5fb4ed56d9d5e5ed07755c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for lions-pycard 0.1.1
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.