Mavireck / Python-Screen-Stack-Manager

PSSM - A GUI toolki to create an image-based user interface with easier layer control.
https://mavireck.github.io/Python-Screen-Stack-Manager/index.html
GNU General Public License v3.0
9 stars 0 forks source link

V3? #2

Open noonasGit opened 1 year ago

noonasGit commented 1 year ago

hello there!

I see that v3 was coming - still on the way??

Mavireck commented 1 year ago

Hello, Sadly no, I have been too busy to work on it and I have left it on hold. The v2 branch should still work, although keep in mind:

Your message reminded me to push the v3 I have locally on my computer, and see how well it works so far. It might be grounds for further improvements by other users! Feel free to contribute however!

noonasGit commented 1 year ago

Hey there!Thanks, I will for sure take a look at what you posted.I too started learning Python (have been hacking around the YAWK).I have added modules, improved stability etc to it.I do like the fact of interaction of touch - tap here to indicate you took in the garbage etc.I will take a look and see if I can use what you made to improve my home hub dashboard. Jonas JohanssonIT Support UX Expert Mac SpecialistOn Feb 25, 2023, at 05:09, Mavireck @.***> wrote: Hello, Sadly no, I have been too busy to work on it and I have left it on hold. The v2 branch should still work, although keep in mind:

I had only just started learning Python when I wrote this, so now there are a lot of things I would implement differently (hence v3) the performance is quite disappointing if you app requires interaction. I considerered at some point learning Go or Rust and implementing it all over again, but that would go against the initial goal which was to have a fast and easy scripting library to quickly write simple apps on the kobo. the touch interaction probably only works on a limited range of kobos (like the aura h2o v1)

Your message reminded me to push the v3 I have locally on my computer, and see how well it works so far. It might be grounds for further improvements by other users! Feel free to contribute however!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

noonasGit commented 1 year ago

Hey there!

I tried to pull the latest from this but it seems incomplete? the examples refers to files that are not part of the repo.

"import sys sys.path.append("../") from PSSM import Stack from PSSM.elements import Demo, Static, Rectangle from time import sleep from PSSM.styles import DEMO as DEMO_STYLE from PSSM.styles import DEFAULT as DEFAULT_STYLE"

is the PSSM core in a separate package?

noonasGit commented 1 year ago

what I would like to do is to add touch to my dashboard - your package seems to be able to do so. I also tried the latest dashboard (KoboDashboardWithPythonLauncherAndWA) but after unzipping and trying it, it says "Traceback (most recent call last): File "/mnt/onboard/.adds/mavireck/Kobo-Dashboard/dashboard.py", line 1398, in FBInk.fbink_add_ot_font("fonts/Merriweather-Regular.ttf", FBInk.FNT_REGULAR); TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str"

you can email me at noonas@gmail.com

Mavireck commented 1 year ago

Hey there!

I tried to pull the latest from this but it seems incomplete? the examples refers to files that are not part of the repo.

"import sys sys.path.append("../") from PSSM import Stack from PSSM.elements import Demo, Static, Rectangle from time import sleep from PSSM.styles import DEMO as DEMO_STYLE from PSSM.styles import DEFAULT as DEFAULT_STYLE"

is the PSSM core in a separate package?

I do not understand you question. The PSSM core is exactly what is contained in this repo. Stack is defined in main.py. elements and Styles are separate modules which are contained in the respective folders.

Mavireck commented 1 year ago

what I would like to do is to add touch to my dashboard - your package seems to be able to do so. I also tried the latest dashboard (KoboDashboardWithPythonLauncherAndWA) but after unzipping and trying it, it says "Traceback (most recent call last): File "/mnt/onboard/.adds/mavireck/Kobo-Dashboard/dashboard.py", line 1398, in FBInk.fbink_add_ot_font("fonts/Merriweather-Regular.ttf", FBInk.FNT_REGULAR); TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str"

you can email me at noonas@gmail.com

Updates in FBink, pyFBInk or in Python can have changed this behavior. Again, I have not used my dashboard for a long time so you can expect some debugging to be required, though I do believe PSSM should still work well (at least on a Kobo Aura H2O edition 1, which is the device I use).

Note that my dashboard (the dashboard.py file) does NOT use PSSM at all. I developped PSSM much after working on my dashboard.

Mavireck commented 1 year ago

I have pushed the remaining commits from my local hard drive to the master branch. I tested them on my laptop, the test files work. I do not know how well they work on a kobo however.

From what I remember, v3 (ie master branch) was still widely work in progress, the code was badly organized, but it should be more powerful than v2.

Mavireck commented 1 year ago

V3 update I have updated the master branch to fix the ongoing on-screen keyboard work. It now works. There is no documentation yet for v3, but you can read the example files for information.