How to use Python and HTML to build a desktop software?

自闭症网瘾萝莉.ら 提交于 2019-12-07 07:43:21

问题


Maybe my question is stupid but I still want to ask.

I am always wondering whether I can use Python, HTML and Css to develop a desktop software. I know there are alrealy several good GUI frameworks like Qt, Tk and etc. But the various sources of HTML and JS frameworks are still attractive to me. I don't mean a software which is just like a web application where there is a frontend and Python acts as a server side language either. I mean use Python like other GUI frameworks. I can create widgets built by HTML and Css.

Dose there any framework have this function? I know there is app.js for Javascript. Or what I think is wrong.


回答1:


Look at pyjs.

What is pyjs?

pyjs is a Rich Internet Application (RIA) Development Platform for both Web and Desktop. With pyjs you can write your JavaScript-powered web applications entirely in Python.




回答2:


CEFPython allows this by embedding the Chromium browser and providing python bindings to it: https://code.google.com/p/cefpython/

~: python example.py

brings up:



来源:https://stackoverflow.com/questions/16127876/how-to-use-python-and-html-to-build-a-desktop-software

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!