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.18.1.tar.gz (109.2 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.18.1-py3-none-any.whl (113.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tkinterweb-4.18.1.tar.gz
Algorithm Hash digest
SHA256 a9f541bc59a1fca2721c196b61149fc892fd08a97bebd1ac403d7526108e6a42
MD5 db5f245e5f6d8fd58e807e3fc90f31bb
BLAKE2b-256 cadee48081b6ebbc008503e01565d1d6023426e0f6b05f547fd7db1d2671df26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkinterweb-4.18.1-py3-none-any.whl
  • Upload date:
  • Size: 113.0 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.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36da65ebfb14db60f328c9c0e6c0b0b93ac51bd8729dd0c9aa9e232e399fdd99
MD5 41f577c17ddbe8d97627bf490dcf4a7d
BLAKE2b-256 9d2cd8e6216c357012a24c9add3d312b938f37066ad6bb4cfe8f957f41c93f0e

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