HTML/CSS viewer for Tkinter
Project description
TkinterWeb
A fast and lightweight web browser widget for Tkinter.
Overview
TkinterWeb offers bindings for the Tkhtml3 widget from http://tkhtml.tcl.tk, which enables displaying HTML and CSS code in Tkinter applications.
All major operating systems running Python 3.2+ are supported.
Usage
TkinterWeb provides a web browser frame, a label widget capable of displaying styled HTML, and an HTML-based geometry manager.
TkinterWeb can be used in any Tkinter application. 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) # create the HTML widget
frame.load_website("http://tkhtml.tcl.tk/tkhtml.html") # load a website
frame.pack(fill="both", expand=True) # attach the HtmlFrame widget to the window
root.mainloop()
Refer to the GitHub home page or the Read the Docs home page for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tkinterweb-4.3.1.tar.gz
.
File metadata
- Download URL: tkinterweb-4.3.1.tar.gz
- Upload date:
- Size: 153.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8035929d8fafb3e3cebea8172e530211565c253a2833fcb03799d92b69e513a3 |
|
MD5 | 387ec31f89c6f32d87fcdfa9e6f1dcaf |
|
BLAKE2b-256 | 3c353a584e5cd2f8c2ef798f3d8cc63be934aaf3f3f1a93f2838211df87fa983 |
File details
Details for the file tkinterweb-4.3.1-py3-none-any.whl
.
File metadata
- Download URL: tkinterweb-4.3.1-py3-none-any.whl
- Upload date:
- Size: 155.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a68ea542ca123259fc474c0cff9d8ded080b7451689799390faf8e7d5b433d |
|
MD5 | b34afe7aee5dad003208257df7f9c172 |
|
BLAKE2b-256 | 2c43f254656c375b7d8ca3e44dd51688b83e2efcbc8a20ef55b8f98722f72458 |