WebIpy is a python module that can render your web-apps into desktop apps under PyQt5 WebEngine.
- Python 3.8.10 (minimum)
- PyQt5 python module
- PyQt5.WebEngine
This part of the documentation will help you to install and use WebIpy. Follow the steps behavior:
To install WebIpy follow the steps behavior:
-
Downlaod it on the WebIpy web-page.
-
Once the file
webipy_v[package version].zip
is installed, extract it on the python interpreter path :C:\Program Files\Python[Interpreter version]\Lib\
.
To use WebIpy follow the steps behavior:
-
Create a new python file and a new html file.
-
Write this base code to initialize the app engine:
import webipy
webipy.APP_ENGINE.setApplicationName('[app name]')
webipy.APP_ENGINE.setApplicationVersion('0.0.1 Alpha A-1')
webipy.APP_ENGINE.setWindowIcon(webipy.QIcon('./assets/icon/favicon.png'))
root = webipy.WebIPyAppEngine(width=1080, height=700, main_url="[html file path]")
if __name__ == '__main__':
webipy.APP_ENGINE.exec()
And that's it, happy coding 👍 !!