Skip to main content

HTML/CSS viewer for Tkinter

Project description

TkinterWeb

A fast and lightweight web browser widget for Tkinter.

Overview

TkinterWeb offers bindings for the Tkhtml3 widget from http://tkhtml.tcl.tk, which enables displaying HTML and CSS code in Tkinter applications.

All major operating systems running Python 3.2+ are supported.

Usage

TkinterWeb provides a web browser 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:

import tkinter as tk
from tkinterweb import HtmlFrame # import the HtmlFrame widget

root = tk.Tk() # create the Tkinter window
frame = HtmlFrame(root) # create the HTML widget
frame.load_website("http://tkhtml.tcl.tk/tkhtml.html") # load a website
frame.pack(fill="both", expand=True) # attach the HtmlFrame widget to the window
root.mainloop()

Output

Refer to the GitHub home page or the Read the Docs 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-4.3.1.tar.gz (153.9 kB view details)

Uploaded Source

Built Distribution

tkinterweb-4.3.1-py3-none-any.whl (155.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tkinterweb-4.3.1.tar.gz
  • Upload date:
  • Size: 153.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tkinterweb-4.3.1.tar.gz
Algorithm Hash digest
SHA256 8035929d8fafb3e3cebea8172e530211565c253a2833fcb03799d92b69e513a3
MD5 387ec31f89c6f32d87fcdfa9e6f1dcaf
BLAKE2b-256 3c353a584e5cd2f8c2ef798f3d8cc63be934aaf3f3f1a93f2838211df87fa983

See more details on using hashes here.

File details

Details for the file tkinterweb-4.3.1-py3-none-any.whl.

File metadata

  • Download URL: tkinterweb-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 155.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tkinterweb-4.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56a68ea542ca123259fc474c0cff9d8ded080b7451689799390faf8e7d5b433d
MD5 b34afe7aee5dad003208257df7f9c172
BLAKE2b-256 2c43f254656c375b7d8ca3e44dd51688b83e2efcbc8a20ef55b8f98722f72458

See more details on using hashes here.

Supported by

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