3 ms·
I've wanted to use the web as a replacement for PyQt (and tkinter, going all the way back to ~1995). It's really been amazing how badly the web tracks what is
by dekhn 7y ago
I've wanted to use the web as a replacement for PyQt (and tkinter, going all the way back to ~1995). It's really been amazing how badly the web tracks what is possible (and easy!) in a good GUI toolkit.
Every 3-5 years I go back and try to find out what is the minimal way to get HTML + JS + CSS to produce something that would be easy in PyQt, while also being fairly principled, standardized, and maintainable.
For example, I wanted to make an animation of a robot that assembled burgers where burger components dropped down a hopper, the robot moved its arms around (kinematics) to assemble components, a conveyor belt to convey burgers, etc.
I ended up using SVG Animations. To get anything done, I ended up on 3-4 pages where the designers who implemented the Animation standard show some examples and a few sparse reference docs. I'm not completely unhappy with the results (many kids at maker faire found the animation enjoyable) but it still feels like the web is missing a really good graphics/view framework like https://doc.qt.io/qt-5/graphicsview.html https://doc.qt.io/qt-5/graphicsview.html
The graphics view framework is very performant, provides a lot of very nice features "for free", and can make extremely sophisticated applications. It's well documented, but of course is not a web app (some days I wonder what would happen if people did full Qt-on-WASM with a browser window rendering context).
- gpderetta 7y agoNo need to wonder: http//doc.qt.io/qt-5/wasm.html
- sgerenser 7y agoIt's pretty terrible though. Definitely not close to "production-ready." Even simple examples take a long time to load and some don't load at all (on Safari and Firefox anyway, I don't use Chrome).
- thedance 7y agoWhat you described seems like it would have been dead simple in Flash.
- dekhn 7y agoAnd fortunately, we've killed that insecure, poorly-designed, but obviously useful way of rendering proprietary applications.
- pier25 7y agoSomething like Pixi? https://www.pixijs.com/ https://www.pixijs.com/
- dekhn 7y agoyup.