WebAppify allows you to make desktop apps from websites.
Go to file
Raoul Snyman 46fc044b5c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
Remove deprecated canMinimizeToTray option
2024-09-27 12:24:13 -05:00
webappify Remove deprecated canMinimizeToTray option 2024-09-27 12:24:13 -05:00
.editorconfig Update WebAppify to the latest tech 2022-06-10 12:30:10 -07:00
.flake8 Update WebAppify to the latest tech 2022-06-10 12:30:10 -07:00
.gitignore Update WebAppify to the latest tech 2022-06-10 12:30:10 -07:00
.woodpecker.yml Fix CI build file 2024-09-27 11:20:58 -05:00
CHANGELOG.rst Update README and CHANGELOG for 0.4.0 release 2022-06-10 12:40:10 -07:00
LICENSE Update README with badges 2022-06-13 09:58:09 -07:00
pyproject.toml Migrate to Qt6 and PySide6 2024-09-27 10:00:58 -05:00
README.rst Remove deprecated canMinimizeToTray option 2024-09-27 12:24:13 -05:00

WebAppify

pypi license build

WebAppify is a simple module to easily create your own desktop apps of websites. WebAppify uses PySide6 and QtWebEngine for displaying the web page, and works on Python 3.10 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.

Additional Options

can_minimize_to_tray

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.

Note

The canMinimizeToTray version of this option was removed in 0.6.0