TkinterWeb is an HTML/CSS rendering widget for Tkinter. It embeds a web view using the system's web engine (WebKit on macOS, MSHTML on Windows, WebKitGTK on Linux) or a fallback HTML parser. Version 4.25.2 supports Python 3.2+. The library is actively maintained, with releases every few months.
pip install tkinterwebVerified import paths — ran on the pinned version, not inferred.
Create a simple Tkinter window with an HTML frame loading a URL.
On Linux, install WebKitGTK: sudo apt-get install libwebkit2gtk-4.0-dev
Use HtmlFrame(..., debug=False) or set after creation: frame.configure(messages_enabled=False)
Replace `from tkinterweb import Browser` with `from tkinterweb import HtmlFrame` and adjust usage.
Consider using a fallback or avoid complex web content on Windows.
Encode the file path as URL: `frame.load_file('file:///' + urllib.parse.quote(path))`Use `from tkinterweb import HtmlFrame` instead.
Install WebKitGTK: `sudo apt-get install libwebkit2gtk-4.0-dev` (or equivalent for your distro).
Ensure the HtmlFrame is added to the UI (pack/grid/place) before calling load_website or other methods.
Reinstall Python with a Tcl/Tk that includes the web view: `brew install python-tk` or use python.org installer.
No dependency data recorded yet.