【问题标题】:How can I write a simple browser with cefpython3 on Windows XP如何在 Windows XP 上用 cefpython3 编写一个简单的浏览器
【发布时间】:2018-07-04 11:20:11
【问题描述】:

我想用cefpython3创建一个简单的浏览器,在mac上我用这个代码

from cefpython3 import cefpython as cef
import platform
import sys
def main():
    check_versions()
    sys.excepthook = cef.ExceptHook  # To shutdown all CEF processes on error
    cef.Initialize()
    cef.CreateBrowserSync(url="https://www.google.com/",
                          window_title="test")
    cef.MessageLoop()
    cef.Shutdown()
def check_versions():
    assert cef.__version__ >= "55.3", "CEF Python v55.3+ required to run this"
if __name__ == '__main__':
    main()

如何在 XP 上获得相同的输出(XP 仅支持 cepython31.2),请帮帮我

【问题讨论】:

    标签: python windows-xp chromium-embedded


    【解决方案1】:

    CEF Python v31 没有 hello world 示例。您可以在此处查看 cefpython31 分支中的所有示例:

    https://github.com/cztomczak/cefpython/tree/cefpython31/cefpython/cef3/windows/binaries_32bit

    以 pywin32.py 为例,它只依赖于小尺寸的 pywin32 库。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-15
      • 2019-11-22
      • 2015-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多