Replies: 1 comment 2 replies
-
Toga Web should be considered highly experimental at present. We had a working demo a couple of years back, but that demo (and the capabilities that fed it) haven't been maintained. That said, if you're keen to contribute, we're keen for any assistance you want to provide. Regarding Brython specifically: I have some reservations over whether Brython is the right approach for the long term - I think WASM offers a much more viable alternative. However, the task of executing Python code in the client is almost orthogonal to the task of serving the web page that has that content; so I can see a world where a "Brython engine" is just one deployment option for the Python execution component that could one day be replaced by a native WASM approach. There's also the argument that a working but problematic something is better than a theoretically better but non existent nothing - and having something that proves the concept would potentially increase interest in developing the WASM alternative backend. As for whether it would be a difficult project? Well, it won't be trivial - but as with most Toga backends, once the core of the problem is solved, implementing individual widgets is mostly labor intensive, rather than complex. If you can get Tutorial 0 running (a button that pops up a dialog when you press it), you've solved the two biggest problems: how do you render an app using Toga's layout algorithm, and how do you run Python code in response to user events. Web does have one additional concern - working out how to map URLs space onto navigation - but that's a design question that can be tackled once the short term questions about widgets have been resolved. |
Beta Was this translation helpful? Give feedback.
-
I am evaluating Beeware for an app, and I would like for it to have a web version. However I saw a note that web support should be considered experimental. I am wondering at what stage this experimentation is, if there is already some at least somewhat framework in place, particularly for Toga. Having read up on its architecture, it seems it might not be too much work to use the Brython project for example as the bridge to Javascript and web components at the native level. As I am also evaluating Brython, I would not be averse to potentially making contributions along these lines (if I proceed with these projects).
Thoughts? Is adding web support more involved than I am considering it to be?
Beta Was this translation helpful? Give feedback.
All reactions