HTML local document editor
Windows version
This project demonstrates how to create apps that combine a python module (tkinter) and an HTML GUI in an offline desktop situation. In this case the focus is on using HTML to edit, create, and format HTML documents. Here pywebview provides communication between Python/tkinter and HTML/Javascript.
There are certain limitations depending on the web engine and API employed. Web engines used outside of an Internet browser may be missing features found in the browser versions. In the Windows version pywebview (WebView2) is provides HTML rendering. In the Linux version pywebview uses WebKitGTK.
In the Windows version of this project pywebview uses WebView2 (part of Edge). WebView2 supports spell checking in a limited fashion.
First install Python:
- from command prompt: winget install Python (winget may not work)
- or from Internet https://www.python.org/downloads/
- or from MS Store "python"
from command prompt:
pip install pywebview
Install the Edge runtime
- MicrosoftEdgeWebView2RuntimeInstallerX64.exe
https://developer.microsoft.com/en-us/microsoft-edge/webview2/consumer/?form=MA13LH&ch=1
Lastly run:
- clone this repository
python wsr.pyw
The purpose of this project is to demonstrate how the pywebview module provides communication between Python/tkinter and HTML/Javascript.