如何使用 tkinter 在应用程序中嵌入浏览器窗口

编程入门 行业动态 更新时间:2024-10-20 09:29:32
本文介绍了如何使用 tkinter 在应用程序中嵌入浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有这个项目,我需要在右框架上嵌入一个浏览器窗口.您可以在下图中看到架构.

I have this project and i need to embeb a browser window on the right frame. You can see the schema on the picture below.

我可以制作浏览器,但似乎无法使用架构实现它,因为它的 tkinter 和浏览器使用 PyQt5.

I can make the browser but cant seem to implement it with the schema because its tkinter and the browser uses PyQt5.

有没有办法使用 tkinter 或使用 Booth GUI 工具包来做到这一点?

Is there a way to do this with tkinter or a way to use booth GUI toolkit?

复选框用于选择链接是在外部浏览器上打开还是应用程序内浏览器位于复选框下方.

the check box is to choose if the link open on external browser or the in app browser locate just bellow the checkbox.

我不需要使用 PyQt5,但我在 tkinter 中拥有一切,我只需要找到在应用程序中安装浏览器的最佳方式.

i dont need to use PyQt5 but i have everything in tkinter, i just need to find the best way to have a browser inside the app.

提前致谢

推荐答案

正如 acw1668 提到的,cefpython 就是这样.

As mentioned by acw1668, cefpython is the way.

https://github/cztomczak/cefpython/blob/master/examples/tkinter_.py

这篇关于如何使用 tkinter 在应用程序中嵌入浏览器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 06:09:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   应用程序   浏览器   窗口   tkinter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!