Windows 上的 Python + webkit + gtk

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3949060/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 07:40:40  来源:igfitidea点击:

Python + webkit + gtk on windows

windowswebkitgtkpygtk

提问by DonJuma

I am trying to do this script: PY WYSIWYG

我正在尝试执行此脚本: PY WYSIWYG

And it says I need Gtk and WebKit. I think this is what I need:

它说我需要 Gtk 和 WebKit。我认为这就是我需要的:

So I downloaded WebKit but I got a folder instead of an installer or install information. Do I move it into the python folder or what do I do?

所以我下载了 WebKit,但我得到了一个文件夹而不是安装程序或安装信息。我是将它移动到 python 文件夹中还是我该怎么做?

采纳答案by ptomato

You need PyGTK, here is a link to the download page with install instructions for Windows: http://www.pygtk.org/downloads.html

您需要 PyGTK,这里是下载页面的链接,其中包含适用于 Windows 的安装说明:http: //www.pygtk.org/downloads.html

You also need the Python bindings for Webkit, not just Webkit itself. Here is a link to an unofficial Windows binary, with install instructions, and a link to an unofficial Webkit runtime for Windows near the bottom too: http://opensourcepack.blogspot.com/2009/12/pywebkitgtk-windows-binary.html

您还需要 Webkit 的 Python 绑定,而不仅仅是 Webkit 本身。这是一个指向非官方 Windows 二进制文件的链接,带有安装说明,以及一个指向底部附近的非官方 Windows Webkit 运行时的链接:http: //opensourcepack.blogspot.com/2009/12/pywebkitgtk-windows-binary.html

回答by user712092

There is automated installer of (mostly) GTK libraries Python. It should have dependencies solved. It is unofficial. It contains webkit. I found it because I wanted webkit installer for Python.

(主要是)GTK 库 Python 的自动安装程序。它应该解决了依赖关系。这是非官方的。它包含 webkit。我找到它是因为我想要 Python 的 webkit 安装程序。

I tried it and it worked like charm.

我试过了,它很有魅力。

List of all plugins contained inside of it:

其中包含的所有插件列表:

  • PyGTK 2.17.0 with numpy support
  • PyGobject 2.21.5
  • PyCairo 1.8.10
  • PyGtkspell, PyGTKhtml2, PyGDL 2.25.3
  • PyGDA 2.29.1
  • PyGST (Python Gstreamer) 0.10.20
  • PyWebkitGTK 1.18
  • PyClutter 1.3.2 with gst and gtk binding
  • PyGTKGlExt 1.1.0
  • PyGoocanvas 0.14.1
  • PyGTKSourceview 2.10.0
  • PyGTKImageview 1.2.0
  • PyRSVG 2.30
  • PyScintilla 1.99
  • PMing 4.4
  • Python Poppler 0.12 GPL
  • VIPSCC 7.24
  • 支持 numpy 的 PyGTK 2.17.0
  • PyGobject 2.21.5
  • PyCairo 1.8.10
  • PyGtkspell、PyGTKhtml2、PyGDL 2.25.3
  • PyGDA 2.29.1
  • PyGST(Python Gstreamer)0.10.20
  • PyWebkitGTK 1.18
  • 带有 gst 和 gtk 绑定的 PyClutter 1.3.2
  • PyGTKGlExt 1.1.0
  • PyGoocanvas 0.14.1
  • PyGTKSourceview 2.10.0
  • PyGTKImageview 1.2.0
  • PyRSVG 2.30
  • PyScintilla 1.99
  • 下午 4.4
  • Python Poppler 0.12 GPL
  • VIPSCC 7.24

PS: I actually had problem with other tutorial on webgui in Python mentioned here, then I found this page and Your tutorial worked. Thanks. :)

PS:我实际上在此处提到的 Python 中有关 webgui 的其他教程中遇到了问题,然后我找到了此页面并且您的教程有效。谢谢。:)