TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Electron as GUI of Python Applications

63 pointsby jp_scalmost 10 years ago

16 comments

jarcanealmost 10 years ago
Man, talk about throwing a battleship at a tugboat&#x27;s problem.<p>This is why we get hot new editors that take a gig of RAM to do what a 40 year old editor can do with a dozen megs.<p>If I were to touch a Python GUI app again, I&#x27;d probably just use Kivy. <a href="http:&#x2F;&#x2F;kivy.org&#x2F;#home" rel="nofollow">http:&#x2F;&#x2F;kivy.org&#x2F;#home</a>
评论 #9792498 未加载
carapacealmost 10 years ago
Man, I <i>like</i> Tkinter. (And you can make it not-ugly with just a little bit of work these days.) ;-)
评论 #9791958 未加载
评论 #9791742 未加载
task_queuealmost 10 years ago
PyOtherSide exists and is maintained<p><a href="https:&#x2F;&#x2F;github.com&#x2F;thp&#x2F;pyotherside" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thp&#x2F;pyotherside</a>
risingganymedealmost 10 years ago
As the post claims, PySide is a dead project. But PyOtherSide isn&#x27;t. And, being a Qt frontend, it works really well with most platforms. It would be interesting to see how Electron stacks up against this.
jszymborskialmost 10 years ago
Maybe Brython would have been a better alternative than setting up a whole server...<p><a href="http:&#x2F;&#x2F;www.brython.info&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.brython.info&#x2F;</a>
moonchromealmost 10 years ago
This seems like a backwards approach - if you want to write Python for Electron you should probably wrap Pepper API in Python, AFAIK Electron supports Pepper plugins because it supports Flash.<p>So compile Python as a Chrome plugin and use Pepper to communicate with DOM.
评论 #9791488 未加载
seletzalmost 10 years ago
An alternative to wrapping things in node might be to use the chrome embedded bindings for python:<p><a href="https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;cefpython&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;cefpython&#x2F;</a><p>This has the advantage to not have to start a web server -- just make python objects visible directly in JS.
评论 #9791439 未加载
msabourinalmost 10 years ago
&quot;The only mature and real-world solution is QT&quot; That seems a little disingenuous. What about GTK with pygobject?
评论 #9791253 未加载
评论 #9791587 未加载
评论 #9791750 未加载
rchalmost 10 years ago
It seems like building around uwsgi, for example, might be easier than interfacing over zmq; and the approach of of using electron to interface with a standalone Python web server is difficult to distinguish from simply opening a browser.
giancarlostoroalmost 10 years ago
This is what I was hoping Atom would be more like when they released the text-editor. This takes some of the load from the DOM itself. However, I wouldn&#x27;t limit it just to Python, but anything that can run a web server. There&#x27;s text editors written in Go who could benefit from having Atom Shell on top of them as one example. There&#x27;s plenty of use cases out there.
kyrrealmost 10 years ago
I experimented with this by using python-shell [1], but it in the end it just felt too hacky, and it decided it was best to embrace js instead.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;extrabacon&#x2F;python-shell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;extrabacon&#x2F;python-shell</a>
IshKebabalmost 10 years ago
When will the node.js madness end?
Fudgelalmost 10 years ago
I wonder if Phantompy could be extended to work with Electron as well. <a href="https:&#x2F;&#x2F;github.com&#x2F;niwinz&#x2F;phantompy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;niwinz&#x2F;phantompy</a>
Marazanalmost 10 years ago
I often put together Flex interfaces that Xml-rpc called pyhon as my &#x27;solution&#x27; to Python GUI programming.
pikzenalmost 10 years ago
So you&#x27;re running a Chrome window on top of V8&#x2F;Node.js, and at the same time starting up a WSGI server just to serve your Python application in that browser window.<p>If that doesn&#x27;t sound completely batshit insane to you, you have a problem. Or you&#x27;re a Node.js developer.
评论 #9791967 未加载
DevPadalmost 10 years ago
For me it&#x27;s not the best approach with server&#x2F;html.<p>By design too many points of failure for desktop app, too many wrappers. The gist is clear: it works, it&#x27;s easier and faster to do, but ...