A library that generates a gui in PIL Image objects.
Project description
Python Screen Stack Manager
Python Screen Stack Manager creates image based user interfaces by layering images. This means that in general, it is not the most efficient way of building an interface. However, it was originally designed to run on Kobo devices, which do not come with a window manager interface (At least that I know of). This means libraries like tkinter do not work, which is where pssm comes in. Since it simply generates images, as long as the device it is running on has a way to print pixel data onto the screen (and run Python code), it should be able to show pssm based interfaces.
The pip install does not come with this functionality however. It provides the bare bones to work with it, which in this case means a tkinter based window that prints the interface. PSSM is simply meant as the interface library. inkBoard (link coming) is meant to be the managing software integrating the devices.
It comes with a relatively robust set of premade elements, which can be used for a basic interface, however they can also be extended (for that, see the Home Assistant inkBoard integration, for example). You can also add the folders /fonts, /icons and /pictures to the directory you are running from, and when referencing a font for a button, for example, PSSM will look in that folder for the font file.
I have not done extensive testing with pssm outside of inkBoard, so I cannot promise everything will work standalone out of the box. This mainly pertains to instantiating various Elements which declare async classes inside their __init__, which may cause issues when no event loop is running yet. If you run into problems like this, please open an issue with the problematic element and the logs. Generally though, if the screen is declared before any elements, this should function fine.
Install
pip install PythonScreenStackManager
Documentation
WIP
Examples
See pssm_example.py. This can also be run by invoking python -m PythonScreenStackManager. It runs the previously mentioned tkinter based interface, and provides a simply grey square that shows the coordinates you clicked on when interacting with it.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythonscreenstackmanager-0.4.0.tar.gz.
File metadata
- Download URL: pythonscreenstackmanager-0.4.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7cdd794c4111a3dc499c9a21a78d653c96ac9ad4e82e9bdf36792b6eae8e915
|
|
| MD5 |
bdd55f5cd3642f82559246c0b460b2a7
|
|
| BLAKE2b-256 |
b6a13de3b7d8d5a2acd9086df6e542e68ab1284b660181fe3810a7778f87d391
|
Provenance
The following attestation bundles were made for pythonscreenstackmanager-0.4.0.tar.gz:
Publisher:
publish.yml on Slalamander/PythonScreenStackManager
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pythonscreenstackmanager-0.4.0.tar.gz -
Subject digest:
b7cdd794c4111a3dc499c9a21a78d653c96ac9ad4e82e9bdf36792b6eae8e915 - Sigstore transparency entry: 161099298
- Sigstore integration time:
-
Permalink:
Slalamander/PythonScreenStackManager@75a21bd00f3a03948227767d1a9dabb47e847b0f -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Slalamander
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@75a21bd00f3a03948227767d1a9dabb47e847b0f -
Trigger Event:
release
-
Statement type:
File details
Details for the file PythonScreenStackManager-0.4.0-py3-none-any.whl.
File metadata
- Download URL: PythonScreenStackManager-0.4.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a730fb2e8d628c1b984d0b6b9c021050c9896d0961caf20db528727cf83aa91
|
|
| MD5 |
27896fa5e6b5d79d1ff43a0eeeb6cb3d
|
|
| BLAKE2b-256 |
7779177a51b17e1dc57edbf63ed0fab8bbf0497e9d86d29199d57706a55a9ce9
|
Provenance
The following attestation bundles were made for PythonScreenStackManager-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on Slalamander/PythonScreenStackManager
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pythonscreenstackmanager-0.4.0-py3-none-any.whl -
Subject digest:
3a730fb2e8d628c1b984d0b6b9c021050c9896d0961caf20db528727cf83aa91 - Sigstore transparency entry: 161099301
- Sigstore integration time:
-
Permalink:
Slalamander/PythonScreenStackManager@75a21bd00f3a03948227767d1a9dabb47e847b0f -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Slalamander
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@75a21bd00f3a03948227767d1a9dabb47e847b0f -
Trigger Event:
release
-
Statement type: