Python bindings for the Tkhtml3 HTML parser
Project description
TkinterWeb
A fast and simple 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.
Both Python 2 and Python 3, as well as MacOS, Windows, and Linux are supported.
Usage
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()
Some other tricks can be found in the HtmlFrame documentation
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tkinterweb-2.1.8.tar.gz.
File metadata
- Download URL: tkinterweb-2.1.8.tar.gz
- Upload date:
- Size: 856.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f80485b125d212c1191146c1acc2129a4e0a435c4f6e80f8ffb6bbdb1de28849
|
|
| MD5 |
59a0202c9350f720a78e1a3a9a073d3d
|
|
| BLAKE2b-256 |
47283eba616f0115bc8c2abc43f7304376bc956ed36d167ce3a570cdc1b63d4b
|
File details
Details for the file tkinterweb-2.1.8-py3-none-any.whl.
File metadata
- Download URL: tkinterweb-2.1.8-py3-none-any.whl
- Upload date:
- Size: 863.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75b35c0377ce8e6af93467549a65ec009e9d562ef462483711665604b02db4a4
|
|
| MD5 |
fd4a8898585c784ac46acd6f260636a8
|
|
| BLAKE2b-256 |
cb749e43130b1a0291465befd430342dd7ff3ea7bbcba9391946d954f130e9f5
|