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
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 | |
|---|---|---|---|
| lions_pycard-0.1.1.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lions_pycard-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|