Python alternative to Java applet?

两盒软妹~` 提交于 2019-12-03 06:31:53

If you want it to run in a browser, you could use PyJamas - which is a Python-to-Javascript compiler and set of tools.

I'm not sure how well it is maintained these days, though.

In this day and age, you might look to the HTML 5 canvas & JS.

While I'm all for the "HTML5 & JS", you can consider Jython and simply write a Java Applet in Python (2.2.3, but...) Java is not only a language, so you're free to choose.

Brython is your alternative. It allows you to define "text/python" scripts.

You can run CPython in the browser using empythoned. There is no proper interface from Python to the browser though, so it will be hard to do any GUI applications.

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