Home > PyGtkWebWidget

PyGtkWebWidget

PyGtkWebWidget is a project mainly written in PYTHON and JAVASCRIPT, based on the GPL-2.0 license.

An abstract Python GTK widget which is rendered as a web page.

Description

PyGtkWebWidget provides a base type for building GTK UI widgets that are implemented as HTML+JavaScript. It provides a JavaScript API for notifying the GTK widget of events and a Python API for consuming JavaScript events and invoking JavaScript methods.

License

GPL v2+

Installing

Copy gtkweb.py and gtkweb.js into your source tree.

Dependencies

  • pygtk 2.22
  • pywebkitgtk 1.1.8

Examples

See demo-simple.py or demo-maps.py for example usage. These scripts are executable.