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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
tkinterweb-3.24.2-py3-none-win32.whl
(398.3 kB
view hashes)
Close
Hashes for tkinterweb-3.24.2-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab327f6a4ff2fbba74be4f9ef1530c5cacf36e88860f2f1a327b81b8cdc26643 |
|
MD5 | 546dfb99ada54fcfef2cb10de31d279c |
|
BLAKE2b-256 | 3ae86084d924560ea78e78c2013343a7af9f76519e9e9c57a916f1ddb5741d38 |
Close
Hashes for tkinterweb-3.24.2-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dac8e71bd12c826c472272cb4804e88c1d335379b4a992800e34df364f087c7 |
|
MD5 | 3cfd22f749b40ee49b0e91e3b001221c |
|
BLAKE2b-256 | d26586ea2cd3e18215d7160fe131057a89c2071fe1512de52f66f71c8cea7a27 |
Close
Hashes for tkinterweb-3.24.2-py3-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5382f32becb4d5ab171e4c2da8d3c59629a676199dd6787e906eba5ce6d0477a |
|
MD5 | ee0d83b48be42698a53a92e9eb2f53d1 |
|
BLAKE2b-256 | e1181857d8d38b81f7c30416f652ea39d29d92e8255d47be143c001889bfe5d7 |
Close
Hashes for tkinterweb-3.24.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0026ebd60acf60e39ec7891ed2d4fcb3c1603b05398f0e4d2db1981b23bd0648 |
|
MD5 | 351128400097d855b8d688577c0fd393 |
|
BLAKE2b-256 | 9ca1c73c8d656ff4bdef861fbffdf653d9b8ccb461e206476bda8b37aa7b8d88 |