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
- Host: GitHub
- URL: https://github.com/kpj/webwrapper
- Owner: kpj
- Created: 2014-03-13T16:17:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-17T20:48:10.000Z (almost 11 years ago)
- Last Synced: 2025-01-18T04:06:56.112Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 535 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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``.