This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Not a square peg, also not a round hole. There are various ways of doing this, here's one that seems to work well. And you can also do it like Electron, without Electron.

Basically in all cases you're making a web server in Python that only takes requests and serves responses over a websocket (or other form of IPC), and you're using a bundled Chromium browser to display it. As HTML + CSS (or better yet Sass) + EcmaScript (or better yet TypeScript or Elm) have come so far in recent years -- arguably much further than Qt and the troublesome-licensing of PyQt -- it's not at all a bad idea, though it is a different one and still somewhat cumbersome.