创建一个使用Python Tkinter的网站前端?

huangapple go评论61阅读模式
英文:

Could you create a website font-end using Python Tkinter?

问题

我有一个问题。是否可能使用Python Tkinter创建Web应用程序的前端部分?原因是,要创建一个网站,你需要了解很多东西,比如HTML/CSS/JS。是否可能仅使用Python创建基于浏览器的应用程序?

英文:

I have a question. Would it be possible to create web apps using Python Tkinter for front end? The reason, that to create a website you need to know a lot of things. Such as HTML/CSS/JS. Would it be possible create browser based apps using python only?

答案1

得分: 3

不可能。Tkinter是一个桌面UI开发框架。

你可以使用任何Web框架,如Django、Flask等来创建Web应用程序。或者你可以使用任何前端框架,如Angular、Vue、React等,然后创建一个API来向基于Python的服务器发出请求。

英文:

Not possible. Tkinter is a desktop UI development framework.

You can use any web framework like Django, Flask and many more to create web apps. Or you can use any front-end framework like Angular, Vue, React and many more and then create an API to make requests to a Python-based server.

答案2

得分: 2

No, tkinter 无法在 Web 浏览器中运行,只能在桌面上运行。

如果您希望在 Web 浏览器中运行 Python 应用程序,可能会对 PyScript 感兴趣。

英文:

No, tkinter cannot run in a web browser, only on the desktop.

You might be interested in PyScript if you wish to run Python applications in a web browser.

huangapple
  • 本文由 发表于 2023年4月6日 19:10:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75948838.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定