Skip to main content

HTML/CSS viewer, editor, and app builder for Tkinter

Project description

TkinterWeb

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

Overview

TkinterWeb offers bindings and extensions to a modified version of the Tkhtml3 widget from http://tkhtml.tcl.tk, which enables the display of HTML and CSS code in Tkinter applications.

Some of TkinterWeb's uses include:

  • Displaying and editing websites, feeds, help files, and other styled HTML
  • Displaying images, including SVG images
  • Creating a rich text or HTML editor
  • Designing apps using HTML templates
  • Creating prettier apps, with rounded buttons and more!

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 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) # 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.19.1.tar.gz (110.9 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.19.1-py3-none-any.whl (114.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tkinterweb-4.19.1.tar.gz
  • Upload date:
  • Size: 110.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.19.1.tar.gz
Algorithm Hash digest
SHA256 715fa0f96872d95e0baa44b80631b20dc2cb59800b54f1421a098c7f1f04faaf
MD5 d0891ea1f212a324a686c70ae0b83363
BLAKE2b-256 31df8b8a48f8a1bcfc5c0d16175fed53efcf04ae542c290963bb8f0835df24d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkinterweb-4.19.1-py3-none-any.whl
  • Upload date:
  • Size: 114.8 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.19.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b49f8797a374d6d70bdcaa44eb37120a2ce9d803d93d47000def95af770ecc41
MD5 7dcad618aeaf5df5cd4b669474a730fe
BLAKE2b-256 2d923af1ecc6593b7cbcca406b014d9e34cb4481b0b63d5c8b36fae585b5f59c

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