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 2.7+ or 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
Close
Hashes for tkinterweb-3.24.1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7390f63836d44e7d241367ef6f1be1d1ff9711f2f3007dbaf6bdfd7dc990f1bf |
|
MD5 | 3744d524bbc15e30054f906c0b011b20 |
|
BLAKE2b-256 | 7fff75d6be01f73a1a30366b15557a262164788977333a3ee4d2b4ac2ed66491 |
Close
Hashes for tkinterweb-3.24.1-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b29789178d46333164789aa922cb6b7bd4c76d83d7e605f20fa71a5ba65783 |
|
MD5 | 8191eb357ca4f71abd900eeace468679 |
|
BLAKE2b-256 | 4cb47c0ffd2063c83c3ba5946f0e8a6c0a0daef265690786244e193dc2065adb |
Close
Hashes for tkinterweb-3.24.1-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a33d68bcbfdf15adc3277384aedb65fee9ce38f708c0285f1a6ece720d22072 |
|
MD5 | 56d9c54bb9effe54019c0a36cd1a56d7 |
|
BLAKE2b-256 | a526ef7ba099f5e380fd4b69ab20fc5f810ae3cec8821ed23f393a8de6f3c7f2 |