Add web browser window to Tkinter window

人盡茶涼 提交于 2019-12-07 14:16:18

问题


I made a gui app with python tkinter, I want to put a little mini little web browser INSIDE MY TKINTER WINDOW, NOT OPENING A NEW TAB, how can I do that?


回答1:


You can't. There is no widget in the tkinter library which allow you to display HTML. If you really NEED to use tkinter you could try tkinterhtml but it's weird and won't work for a lot of features (hyperlinks, images...)

If you just want to create a python app with a web interface, you'd better use a python web framework like flask or django.



来源:https://stackoverflow.com/questions/52436214/add-web-browser-window-to-tkinter-window

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