3 ms·
Very nice! Congrats on the release. Side note: I find it funny how we go to such lengths in order not to write JavaScript.
by yuppiepuppie 3y ago
Very nice! Congrats on the release.
Side note: I find it funny how we go to such lengths in order not to write JavaScript.
- toyg 3y agoActually, using this the chances are you'll still write JS. The examples are all JS-based. Most of this project seems to be about replacing Electron specifically.
- fock 3y agoAre there any sizable examples without Javascript at all? Also this uses a whole lot of custom code (and some DLLs vendored and created from the interop-native-packages...) to hook up to native Webviews (which might be fine for simple things, but so is tkinter), so this is not electron, where you get a specific verson of blink/whatever and build on that. In addition, it uses heavy toolkits to get the webview (i.e. Kivy on Android and Qt on Linux) – all of which incidentally also support all the platforms. EDIT: it doesn't package them though... So why multiply your problems: from GUI-framework Y on platform (X1,X2,X3) to GUI-framework (Y1,Y2,Y3)on platform (X1,X2,X3) using render-engine (Z1,Z2,Z3). If you want to use the platform-browser anyway: why not create a small native shim (with Tkinter everywhere but Android) to control your server and package that? To end on a very positive note: this is a herculean collection of tools to deploy Python GUIs on nearly any platform and as such seems like a very nice ressource if you want to do that!
- p4bl0 3y agoUsing Pywebview you can either use a "normal" web backend, e.g., using Flask to make a backend HTTP API, or you can expose Python code to make it callable "directly" (a more correct term would be "transparently") from JavaScript on the frontend side. In the latter case it's quite useful be able to update the DOM directly from Python :).
- dade_ 3y agoI'm not. I see the Javascript guy, the GO guy, but I am surprised not to see the Rust guy, probably just running late though.
- lolinder 3y agoThis post isn't specifically recommending it as a substitute, but it references Tauri, which is Rust [0]. [0] https://news.ycombinator.com/item?id=39689206 https://news.ycombinator.com/item?id=39689206