3 ms·
You get to control the chrome a bit more - with Pywebview you can open something that looks like a regular application window, with the fact that it's HTML+CSS+
by simonw 3y ago
You get to control the chrome a bit more - with Pywebview you can open something that looks like a regular application window, with the fact that it's HTML+CSS+JavaScript a hidden (from the user) implementation detail.
You can make Python functionality available to your custom JavaScript via a bridge. The bridge goes both ways - your Python application can trigger JavaScript to run inside the visible windows too.
You can add application menus.
- abrichr 3y agoThanks! Are there any drawbacks to Pywebview compared to a browser?
- simonw 3y agoProbably loads. It's an extra dependency so it adds complexity (though it does seem to be very cleanly designed from what I've seen so far). Stuff people do in Pywebview won't be added to their browser history, doesn't get access to their existing cookies, presumably doesn't work with password managers and browser extensions. But if you want to give people a separate app experience it looks like a great option to me.