Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textual/Rich #27

Open
pmp-p opened this issue Nov 26, 2023 · 0 comments
Open

Textual/Rich #27

pmp-p opened this issue Nov 26, 2023 · 0 comments
Labels
AVAIL FOR TESTING help wanted Extra attention is needed

Comments

@pmp-p
Copy link
Member

pmp-p commented Nov 26, 2023

Sadly the library model is a mixup of threading and async.

Textual seems ok for basic samples eg https://pygame-web.github.io/showroom/pypad_git.html#src/test_textual.py

it relies on a lot of dependencies and seems CSS driven.

But though rich is complex it has less dependencies, and also interesting for non-css based scenegraphs. Though it could have problems like

  File "<console>", line 121, in main
  File "/data/data/org.python/assets/build/env/rich/console.py", line 549, in <module>
    class ConsoleThreadLocals(threading.local):
TypeError: function() argument 'code' must be code, not str

Which i've blindly fixed without further testing:

https://github.com/pmp-p/textual-wasm/pull/1/files

https://github.com/pmp-p/rich-wasm/pull/1/files

@pmp-p pmp-p added help wanted Extra attention is needed AVAIL FOR TESTING labels Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AVAIL FOR TESTING help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant