An open API service indexing awesome lists of open source software.

https://github.com/kpj/webwrapper

PyQt wrapper for web applications
https://github.com/kpj/webwrapper

Last synced: 2 months ago
JSON representation

PyQt wrapper for web applications

Awesome Lists containing this project

README

        

# PyQt Web Wrapper

This framework serves as a simple way to embed web applications into a single, local application.

## Installation

Install the needed [PyQtX](https://github.com/kpj/PyQtX) package using

pip install PyQtX

## Usage

1. Call ``main.py`` and provide your main html file as an argument ([example](https://github.com/kpj/WebWrapper/blob/master/start))
2. Your ``index.html`` has to include the following file
* ``./view/include.js``
3. Call ``initWrapper`` and provide additional sources as well as a callback to be executed when all sources are loaded
4. Check the documentation for a list of provided methods

## Documentation

The latest documentation can be generated using doxygen.

Particularly important is the object called ``PyInterface`` which allows access to more sophisticated (python) functions from javascript.
These functions are defined in ``./python/js_interface.py``.