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:
from tkinterweb import HtmlFrame #import the HTML browser
try:
import tkinter as tk #python3
except ImportError:
import Tkinter as tk #python2
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.5.tar.gz
(1.4 MB
view hashes)
Built Distributions
tkinterweb-3.24.5-py3-none-win32.whl
(398.3 kB
view hashes)
Close
Hashes for tkinterweb-3.24.5-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c51bf1e6e8232f0160beb4debc438eaed48d7ba65c618e9fbc08368ddc07ca |
|
MD5 | 1051253266bdd1d20b2f9969e3c37388 |
|
BLAKE2b-256 | eceb7fb8e76045a2aabbbeb3aba5720f66df582b461c3b241ba2e6d8434c39b5 |
Close
Hashes for tkinterweb-3.24.5-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e18c6958ddc586e58ad19adedb0e0ba717bd41dba3f3baff3e7e2022de7456 |
|
MD5 | c02553a38e7ef6118602fca6d9151e1a |
|
BLAKE2b-256 | ba91e059f1d3079c85eff8495bc92fb1859a08a3b810e69afb44f959a43f8fd5 |
Close
Hashes for tkinterweb-3.24.5-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97b6adfa1690c8ce662a81cb7ec830cf389ada55dde299bec3e352e0a74df5c |
|
MD5 | e9556010f5574665ae45cfcb3969bc28 |
|
BLAKE2b-256 | 2c5e1549711792d4a33e40d9e2d3b975e2d7f03db73294143ad321e3ef40c2c5 |
Close
Hashes for tkinterweb-3.24.5-py3-none-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b7505c1101b94a4a81f2bfc4462e83b019e7ee062af8fe82cb522707b88dbb |
|
MD5 | ce89133803a6063f1a46e25801d9ef93 |
|
BLAKE2b-256 | 64000da117cc61ddcf4ece8c4aa8fea4982695e5a18effe9e4816d5654a82a9e |
Close
Hashes for tkinterweb-3.24.5-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07da84a93ffe85c2879dc31a49ebcb5e0d67e55c7620e09ea1e8523ae80bdf7a |
|
MD5 | f4f6a40399b1b405e249b29a732fab39 |
|
BLAKE2b-256 | da5b92ba86a6e757547e0c6be3100b5880dd58185e46a855ba74089b3036fb06 |
Close
Hashes for tkinterweb-3.24.5-py3-none-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d8e7e5d78dfdfc0f8f06a0e5f0136f53340fb93fde8d4bf6cbe829966d96ab0 |
|
MD5 | 46cda0e95d1853aa4fd899e82ce6ac4c |
|
BLAKE2b-256 | 7e2202c206c8702ab74ce725fb2589c63161781d101997656935c3ef6949bb2d |
Close
Hashes for tkinterweb-3.24.5-py3-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0224c98d151108138e0612e295b13d007fc55aee1c8012e32685878c9028bce8 |
|
MD5 | 8e480d11ccb373f543a3b7714802afad |
|
BLAKE2b-256 | e9dd1bb75e0d68d10f49bbb9978ffe8c3244113881f0c261c4c0e88092749e5f |
Close
Hashes for tkinterweb-3.24.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fba780d4ce15a71ec174345c3e9be811086dbc4e3344d2d6ff7b3ebe906abbd |
|
MD5 | 8636ddc9f6c63d42e94fedf6cd74ba36 |
|
BLAKE2b-256 | 9a88b13238edccc939f740635353c034c7bcd299b0655afdbe306bdf6888ca42 |