-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
Invent compatibility #3014
Comments
The comparison chart doesn't load for me. |
Sorry, I've fixed the link.
Done. |
Assuming all this works out... would Toga still even need a separate web backend? From that diagram, it looks like as long as the "Toga app components" are also implemented in toga_invent, a fully Toga app could then use that to display in a web browser. At which point it would make more sense to name the shared backend toga_pyscript. |
@HalfWhitt It depends a little on the final form of rendering. Any web-based implementation will likely share a lot of common infrastructure and tooling; but there might be some differences depending on exactly how styles and web components are used. Toga-web and Invent both use pyscript as a bridge; but when rendering widgets, Invent tries to keep things as close to "pure" HTML + CSS as possible, and uses paperCSS. Toga-web has historically used Bootstrap, and currently uses Shoelace (soon to be renamed "Web awesome") to provide a richer set of widgets. This doesn't matter as much for simple widgets like Button, but might for more complex widgets like "Tree" that doesn't have a "native" HTML widget that can be styled. So - what is labeled as "toga-invent" in that diagram might end up being;
We need to do a little more investigation before it's going to be clear which approach will be most viable. |
This is a meta-issue listing the items that would be required for Invent to base itself on Toga, along the lines of this diagram (source):
The following is mostly based on this comparison chart of the two projects' existing APIs.
General concepts:
Flexbox enhancements:
gap
(padding between children) #1943Other wIdget enhancements:
purpose
property #3013Testing:
New widgets – these would NOT be blockers, as long as the architecture allows them to be supported on Invent only at first:
The text was updated successfully, but these errors were encountered: