TkinterWeb
Fast and lightweight web browser, rich text, and app design widgets for Tkinter.
Overview
TkinterWeb adds HTML and CSS rendering capabilities to Tkinter widgets.
Common use cases include displaying help files, documentation, and other HTML content, rendering images (including SVG), building rich-text editors, designing apps with HTML templates, and creating more modern-looking interfaces, with advanced styling and even round buttons!
All major operating systems running Python 3.2+ are supported.
Installation
To install TkinterWeb, simply type pip install tkinterweb[recommended] in the command prompt or terminal. That's it!
Usage
TkinterWeb provides:
- A frame widget to display and edit websites, help files, RSS feeds, and any other styled HTML in Tkinter.
- A label widget that can display styled HTML.
- A text widget that allows the user to edit styled HTML.
TkinterWeb can be used in any Tkinter application to display and edit websites, help pages, documentation, and much more! Here is an example:
import tkinter as tk
from tkinterweb import HtmlFrame # import the HtmlFrame widget
root = tk.Tk() # create the Tkinter window
frame = HtmlFrame(root, messages_enabled=True) # create the HTML widget
frame.load_website("https://tkinterweb.readthedocs.io/en/latest/") # load a website
frame.pack(fill="both", expand=True) # attach the HtmlFrame widget to the window
root.mainloop()
Visit the Read the Docs home page for more information!
Metadata
Release files for tkinterweb 4.25.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tkinterweb-4.25.4.tar.gz | 113.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tkinterweb-4.25.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 229.9 kB
Release files / tkinterweb-4.25.4.tar.gz
| Download URL | tkinterweb-4.25.4.tar.gz |
|---|---|
| Size | 113.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee1a458d693dff74b6e4cae47b5b64f741c591a72ef8172b104ceb241c98d2d8
|
|
BLAKE2b-256 checksum How to use checksums |
ff8e57e7249a3d85459a2cd09f0c7476d9682383b7a3cd84e32e683a5ffad859
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / tkinterweb-4.25.4-py3-none-any.whl
| Download URL | tkinterweb-4.25.4-py3-none-any.whl |
|---|---|
| Size | 116.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22be8a4d914a93ade160d6155dc2bc54597cb59df8ef00f3936c02a2ae7ad38e
|
|
BLAKE2b-256 checksum How to use checksums |
9f7e9717c012bc9a2a36c8dd0f1a9b61b45d8b9bf46015fc973369ac933881bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|