Skip to main content

HTML/CSS viewer for Tkinter - bindings for Tkhtml3

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 Distribution

tkinterweb-3.10.2.tar.gz (1.1 MB view details)

Uploaded Source

File details

Details for the file tkinterweb-3.10.2.tar.gz.

File metadata

  • Download URL: tkinterweb-3.10.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.10

File hashes

Hashes for tkinterweb-3.10.2.tar.gz
Algorithm Hash digest
SHA256 d62b8b5d6b673edbbe9c233f922ab02e43cfe3e190ab35cc4f2a8b85f6854a2b
MD5 57c8917ca5fb211827509d4ee75bfa9c
BLAKE2b-256 1039cb522e1d966fb5fdd48d0fcd251d74cf9750e02f6fcf9a4faecff2704958

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page