Skip to main content

HTML/CSS widgets for Tkinter

Project description

TkinterWeb

Fast and lightweight web browser, rich text, and app design widgets for Tkinter.

Overview

TkinterWeb adds HTML and CSS rendering capabilities to Tkinter widgets.

Common use cases include displaying help files, documentation, and other HTML content, rendering images (including SVG), building rich-text editors, designing apps with HTML templates, and creating more modern-looking interfaces, with advanced styling and even round buttons!

All major operating systems running Python 3.2+ are supported.

Installation

To install TkinterWeb, simply type pip install tkinterweb[recommended] in the command prompt or terminal. That's it!

Usage

TkinterWeb provides:

  • A frame widget to display and edit websites, help files, RSS feeds, and any other styled HTML in Tkinter.
  • A label widget that can display styled HTML.
  • A text widget that allows the user to edit styled HTML.

TkinterWeb can be used in any Tkinter application to display and edit websites, help pages, documentation, and much more! 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, messages_enabled=True) # create the HTML widget
frame.load_website("https://tkinterweb.readthedocs.io/en/latest/") # load a website
frame.pack(fill="both", expand=True) # attach the HtmlFrame widget to the window
root.mainloop()

Output

Visit 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.25.0.tar.gz (112.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tkinterweb-4.25.0-py3-none-any.whl (116.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tkinterweb-4.25.0.tar.gz
Algorithm Hash digest
SHA256 3c4af8e469410060c293be833628fdb704f9036b57425ef2b6e5b2c12264c8a6
MD5 e9b0b4d26a9ae6c3fc4dfbe823ce5a47
BLAKE2b-256 a03fedb44010c5c6803d02eb83d5e1ce89185cd54f6ecdfa2233c500dfaa69b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkinterweb-4.25.0-py3-none-any.whl
  • Upload date:
  • Size: 116.7 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.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1173714b1aa60400d977fe899b282d9d09e766653b1d0807c5b49b0f119590a7
MD5 ce5f7a41abcc8b437f537c0b001705d8
BLAKE2b-256 2e6ee08026e485fcb741d9ca07a003e727489f2874c2f7ee728c72246c11c9f0

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