Metadata-Version: 2.1
Name: webwindow
Version: 1.2.1
Summary: WebGL Window
Home-page: https://github.com/szabolcsdombi/webwindow/
Author: Szabolcs Dombi
Author-email: szabolcs@szabolcsdombi.com
License: MIT
Project-URL: Source, https://github.com/szabolcsdombi/webwindow/
Project-URL: Bug Tracker, https://github.com/szabolcsdombi/webwindow/issues/
Keywords: WebGL,window
Platform: web
Description-Content-Type: text/markdown
License-File: LICENSE

# WebWindow

WebWindow is a lightweight window implementation for Python,
developed primarily to support the [ZenGL](https://zengl.readthedocs.io/) documentation,
and it can be easily deployed with [Pyodide](https://pyodide.org/) or [PyScript](https://pyscript.com/)

## Examples

See WebWindow in action: [Live Examples](https://pyscript.com/@szabolcsdombi?q=webwindow)

## Usage

Add this line to the **pyscript.toml**

```toml
packages = ["zengl", "webwindow"]
```

```py
import zengl
from webwindow import WebWindow

window = WebWindow(600, 400)
ctx = zengl.context()

@window.on_render
def render():
    ctx.new_frame()
    ctx.end_frame()
```

## License

Licensed under the [MIT License](LICENSE)
