TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN:To build a GUI should I take the HTML5/js path or stick to older techs?

3 点作者 zoobert超过 12 年前
I have built an application using Python and would like to add a graphical interface for that application. The application is multi-platform and I am looking for a solution that should run on Win/Mac/Linux.<p>I have checked the different widget toolkits in Python (PyQt/PySide and wxPython) but I am not satisfied by them because in general the learning curve is high and because by default, they produce "clunky" anonymous results.<p>So if I want to go further with them and produce a nice personalized result (create your own widgets, ...) , I need to be really invested and spend lots of time mastering them.<p>I am wondering if building a web based interface (HTML5/javascript) wouldn't be better ?<p>I could create the web interface and run it in chromium with an extension to manage all filesystems operation. I could also start a nodejs server and kill it when I stop the application.<p>Do you think it is a viable solution ?<p>Which road would you take (stick to widget toolkit, nodejs, chromium) ?<p>Any advices are welcome.

5 条评论

airfoil超过 12 年前
PySide with QtWebkit would work for a desktop html gui:<p><a href="http://srinikom.github.com/pyside-docs/PySide/QtWebKit/index.html" rel="nofollow">http://srinikom.github.com/pyside-docs/PySide/QtWebKit/index...</a>
评论 #4668679 未加载
dman超过 12 年前
Check out enaml - <a href="https://github.com/enthought/enaml" rel="nofollow">https://github.com/enthought/enaml</a> . It makes writing UI's in python really fun.
评论 #4668676 未加载
mouseroot超过 12 年前
well for cross platform Qt or gtk,although everyone always says stay away from experimental I say use canvas If the user cant use the canvas fall back to jquery. I belive with the technologies we have now old idioms like "dont render gui on the canvas" this will soon fade away, running your own server for just that application may not work so well as you have to manage that server aswell, like what if the user isnt allowed to give the firewall access? or what if the server crashes and the client has import data that needs to saved? I personally have played with alot of gui stuff and I always come back to html5 and js so thats just my $0.02
评论 #4668657 未加载
farseer超过 12 年前
build the gui in html5, just use only the popular libraries such as jquery and stay away from the experimental stuff i.e. canvas or webgl.
评论 #4668520 未加载
camus超过 12 年前
Depends on what you want to do. For gui development you should use a solution that has a GUI editor so you dont have to manually code your interface , i find it pretty important , that's why in my opinion Java with Swing is still the easiest way to go for multiplateform GUI development. Java is not that hard and tools like eclipse or netbeans provide gui editors. You want to use HTML5/Javascript ? then go with adobe air , you will be able to develop your app in full javascript/html and take advantage of the air API, and deploy in any plateform that can run air.