如何使用 tkinter 在应用程序中嵌入浏览器窗口 [英] How to embeb browser window in app with tkinter

查看:157
本文介绍了如何使用 tkinter 在应用程序中嵌入浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.com/cztomczak/cefpython/blob/master/examples/tkinter_.py

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆