WebAppify allows you to make desktop apps from websites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
raoul 43215e5d94 Merge pull request 'Update README with badges' (#8) from readme-badges into master 4 months ago
webappify Update WebAppify to the latest tech 4 months ago
.editorconfig Update WebAppify to the latest tech 4 months ago
.flake8 Update WebAppify to the latest tech 4 months ago
.gitignore Update WebAppify to the latest tech 4 months ago
.woodpecker.yml Add a git pull to see if that helps 4 months ago
CHANGELOG.rst Update README and CHANGELOG for 0.4.0 release 4 months ago
LICENSE Update README with badges 4 months ago
README.rst Update README with badges 4 months ago
pyproject.toml Update WebAppify to the latest tech 4 months ago

README.rst

WebAppify

pypi license build

WebAppify is a simple module to easily create your own desktop apps of websites. WebAppify uses PyQt5 and QtWebEngine for displaying the web page, and works on Python 3.8 and up.

To create your own desktop web app, import and set up the WebApp class.

from webappify import WebApp

app = WebApp('OpenStreetMap', 'https://www.openstreetmap.org', 'osm.png')
app.run()

This will create a window with the website, using the icon provided.

Note

If your site needs Flash Player, you'll need the appropriate Flash Player plugin installed system-wide. For QtWebKit you will need the NPAPI plugin, and for QtWebEngine you will need the PPAPI plugin.

Additional Options

can_minimize_to_tray

Important

This option was changed in version 0.4.0 from canMinimizeToTray to can_minimize_to_tray. The old option is still available, but is deprecated. It will be removed in 0.5.0.

To install a system tray icon, and minimize your application to the system tray, simply pass can_minimize_to_tray=True to the class and a tray icon will be installed with the necessary menu options.

app = WebApp('OpenStreetMap', 'https://www.openstreetmap.org', 'osm.png', can_minimize_to_tray=True)

Clicking on the tray icon will show the window, while right-clicking will show the menu.