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.6.tar.gz
(1.4 MB
view hashes)
Built Distributions
tkinterweb-3.24.6-py3-none-win32.whl
(398.3 kB
view hashes)
Close
Hashes for tkinterweb-3.24.6-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4a5e5703f172fb7a438b04f3a723a01b6f12091aa44b1fcd568d75e318ab5f |
|
MD5 | 65881a51289a6e83f3e18e8fd604b609 |
|
BLAKE2b-256 | f686c18b92e2e24841a6782fa057aa82d57b879109b05348de198448be115863 |
Close
Hashes for tkinterweb-3.24.6-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d899ebf53c04df7501cc8eb3df9f7868ac6e67e91d79d7cd3d4a8a2524dd75b |
|
MD5 | f9ff942c93ffe9cd560c2c79c7465579 |
|
BLAKE2b-256 | ffc3736f33a07ed86df74a0be84ca40647b30d6f677f4018f94745bc9e6a5288 |
Close
Hashes for tkinterweb-3.24.6-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a6768db33e7edff19bf167f7a38c863686f9a5ebf36664a9ec8ac2d19540a2 |
|
MD5 | edbb8365ba410cee919059d5f7885212 |
|
BLAKE2b-256 | 3b8fd4b6a5df81888cb7dc1e6dd30aa75f8472356345aa429f79e05d24d1f8cc |
Close
Hashes for tkinterweb-3.24.6-py3-none-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c553a978ac906558c03a26254757bba3d011d12b416b0fac8d7802599253ec1 |
|
MD5 | f4e6192e60078c79d714b0a946fa815a |
|
BLAKE2b-256 | a75dbf2e3532e77d27fcf964dee98bb73a1346dc208d2eaecf7ad3707bbdd8c3 |
Close
Hashes for tkinterweb-3.24.6-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2df2e84ab64db62f038e1c6974dc7c53156bd3fa228e88be20b25c788f2fe6e4 |
|
MD5 | aeb5d61785a63476abf3e0e6e2f5c0d1 |
|
BLAKE2b-256 | 9edd52777d9638650404a115559e77a1f4c81f908f1e539221174af1ec959103 |
Close
Hashes for tkinterweb-3.24.6-py3-none-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd37d7ec8f4c2cfdf3bab4b9f5423ebfa76a50032edce245b3b0e8a86b7ba44 |
|
MD5 | b87e89a6e10b1796e897d522664ef063 |
|
BLAKE2b-256 | ae0ddd4fd0211cc327719692980b6826c16d5a5d1fb64a602ac3a01029543fed |
Close
Hashes for tkinterweb-3.24.6-py3-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2574a9e6202032fa89cc0084364a35cbe8094ba34b79dc4e1d40f9a742af26f |
|
MD5 | 77908208040d792835396701e01f115b |
|
BLAKE2b-256 | 3f7a5bc3fcb0324af7ac6faedd8d1325b5c3040af9badd2838d92316b93c4112 |
Close
Hashes for tkinterweb-3.24.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 755173afa4a26c13dc1e9cef80929e0e4f3f7e05216bc55dca90042c6eed55ba |
|
MD5 | 85376fae9bdc663d342cb0c2503a792f |
|
BLAKE2b-256 | 6b5042542c0e5fb19710bee20442b05ac39f58827e740604f1328a06b543c2fb |