Metadata-Version: 2.1
Name: pycuteweb
Version: 0.1.0
Summary: Package which aims to display webapps or websites on a desktop window
Home-page: https://github.com/matteomeneghetti/pycuteweb
Author: Matteo Meneghetti
Author-email: matteo@meneghetti.dev
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: pyside2

# pycuteweb

This package aims to display webapps, websites, or other forms of HTML content on a GUI window.

It is currently built entirely on PySide2, Qt for Python.

## Example

On Debian/Ubuntu based system it is required to install some shared libraries:

```
sudo apt install --reinstall libxcb-xinerama0
```

Actual example
```python
from pycuteweb import Application
import os

app = Application()

# (Optional) Add a simple splash screen
dirname = os.path.dirname(__file__)
app.add_splashscreen(os.path.join(dirname, "resources/esa.gif"))

# Load a webpage
app.spawn_window("https://www.meneghetti.dev", title="My website")

# Render all windows and start the app
app.start()
```

## Flask example

In case you want to run a desktop application with flask, just pass the flask object
to the app object.

```python
from flask import Flask
from pycuteweb import Application

app = Flask(__name__)


@app.route('/')
def index():
    return "Hello world!"


if __name__ == '__main__':
    web_app = Application()
    web_app.add_flask(app)
    web_app.start()
```


### Dependencies

- PySide2 <i>LGPLv3</i>


