HTML/CSS viewer for Tkinter
Project description
TkinterWeb
A fast and lightweight cross-platform webbrowser for Tkinter.
Overview
TkinterWeb offers bindings for the Tkhtml3 widget from http://tkhtml.tcl.tk/tkhtml.html, which enables loading HTML and CSS code into Tkinter applications.
All major operating systems running Python 3+ are supported.
Usage
TkinterWeb provides a webbrowser 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 #import Tkinter
from tkinterweb import HtmlFrame #import the HTML browser
root = tk.Tk() #create the tkinter window
frame = HtmlFrame(root) #create HTML browser
frame.load_website("http://tkhtml.tcl.tk/tkhtml.html") #load a website
frame.pack(fill="both", expand=True) #attach the HtmlFrame widget to the parent window
root.mainloop()
Refer to the GitHub 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
tkinterweb-3.24.7.tar.gz
(1.4 MB
view hashes)
Built Distributions
tkinterweb-3.24.7-py3-none-win32.whl
(398.2 kB
view hashes)
Close
Hashes for tkinterweb-3.24.7-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83626b059d964242f23587797e09afc863e75b6a20b3f9f177ce03a425c1d154 |
|
MD5 | 6e3cd0252629c9894753e3f6e37acc2d |
|
BLAKE2b-256 | 4da4d4af49f3d658e8033696407c66b70f1f99cef9212b328549509f308a6a6a |
Close
Hashes for tkinterweb-3.24.7-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 257d11003ae398990871bf852f8375b2ba7cbe9b5c0d2eeb81adc00ab83af4fc |
|
MD5 | dd8f398f063161a9bdd7356c5593ae65 |
|
BLAKE2b-256 | 8206ba0e243649eec8870033a1c4b650be55ae86b83e2b388125aa04f5d94b6e |
Close
Hashes for tkinterweb-3.24.7-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a23e9956e184e3f26ac57de4c0d9abc95415ec917157d6ae4015a59f3a7e8d5 |
|
MD5 | 061c7b0772c7f032e9f70b0910f56931 |
|
BLAKE2b-256 | 55a842f84224bc0c031cd7f9101bb6d406a8fd0f232de3398415c5f0c4c79a00 |
Close
Hashes for tkinterweb-3.24.7-py3-none-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 292e32232db9d6b2fd48ea2e46d0b1cecef6589c1add1e9efb99ff5b121f3913 |
|
MD5 | aebc9ec97e1243261e1fc251392cd28a |
|
BLAKE2b-256 | 0f40a40a6d9ab43a780cbf87c3d8b95b3914b43bbc160162c42160cf3c609a83 |
Close
Hashes for tkinterweb-3.24.7-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c9fdc2e7163af4483e95e56d3d0fb426057747551b1d38ba6765e9fcf95790a |
|
MD5 | 3763b09704ab4b3c2b8f0ca0ae30ebf2 |
|
BLAKE2b-256 | 430cce03ec65f8bd9b4e74a8ac4952ce4a027144fe743f3e792d9cb0b5baeb3d |
Close
Hashes for tkinterweb-3.24.7-py3-none-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e985cb2331bec6bcb7136b97398d0fbb3399f334f511e4961d23f2b46d273048 |
|
MD5 | 1b41e8caf55b982fdfce5cf62d8c98a4 |
|
BLAKE2b-256 | a65e9bcdfa182ad8605ce3cd669b773ed4b0cead5a6a446166f0339805c6e9ee |
Close
Hashes for tkinterweb-3.24.7-py3-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f7e0f14085cd73115e89b8a2777277d64f27ba0b6e8b0f4aef6aa4bf41c4e99 |
|
MD5 | f3b4cae71027ffcbd787ccf402095172 |
|
BLAKE2b-256 | 3f2092a49c9a5c3d6645cc0f6341ef8d8a938b39c98bf6f958f60e56f847c521 |
Close
Hashes for tkinterweb-3.24.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c7524532657eb3b757330ee29b20aa4103f29113308fca00d01d011255e4f1 |
|
MD5 | c740bd69557264c4f3f9d9e538e06171 |
|
BLAKE2b-256 | 78b5826849cfef5ea43dc98a0e159196bea4bc629ec3c478d766a5e23448400c |