How to make a simple cross-platform web browser with Python?

http://code.google.com/p/pywebkitgtk/ looks great, but it seems to work only on Linux.

Does anyone know if there is something similar, but cross-platform?

If not, what alternatives can make a simple web browser with Python that can run on Windows, MAC os, and linux?

Thanks in advance

Update: Does anyone have information on wxWebKit ?

+4
source share
3 answers

Qt (which has Python bindings with PyQt or PySide ) offers Webkit (the same engine as Safari). Creating a simple cross-platform browser is trivially implemented with this.

To show how simple it is (example taken from the link):

#!/usr/bin/env python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * app = QApplication(sys.argv) web = QWebView() web.load(QUrl("http://www.stackoverflow.com")) web.show() sys.exit(app.exec_()) 
+9
source

If you don't mind changing the code in an open source project, you can try making Grail in a modern version of Python.

0
source

Returning to this question posed 3 years ago, I would like to mention the Chromium Embdedded Framework . It is worth a try.

0
source

Source: https://habr.com/ru/post/1305844/


All Articles