# 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](https://github.com/Andereoo/TkinterWeb) for more information.**
Raw data
{
"_id": null,
"home_page": "https://github.com/Andereoo/TkinterWeb",
"name": "tkinterweb",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "tkinter,Tkinter,tkhtml,Tkhtml,Tk,HTML,CSS,webbrowser",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/ac/09/d90c1f2be4fb035811e943879db429a6bc896643636a5a9c8ca08ae83a49/tkinterweb-3.23.5.tar.gz",
"platform": null,
"description": "# TkinterWeb \n**A fast and lightweight cross-platform webbrowser for Tkinter.**\n\n \n \n## Overview\n**TkinterWeb offers bindings for the Tkhtml3 widget from http://tkhtml.tcl.tk/tkhtml.html, which enables loading HTML and CSS code into Tkinter applications.**\n\nAll major operating systems running Python 2.7+ or Python 3+ are supported. \n\n \n \n## Usage\n\n**TkinterWeb provides a webbrowser frame, a label widget capable of displaying styled HTML, and an HTML-based geometry manager.**\n\n**TkinterWeb can be used in any Tkinter application. Here is an example:**\n```\nfrom tkinterweb import HtmlFrame #import the HTML browser\ntry:\n import tkinter as tk #python3\nexcept ImportError:\n import Tkinter as tk #python2\n\nroot = tk.Tk() #create the tkinter window\nframe = HtmlFrame(root) #create HTML browser\n\nframe.load_website(\"http://tkhtml.tcl.tk/tkhtml.html\") #load a website\nframe.pack(fill=\"both\", expand=True) #attach the HtmlFrame widget to the parent window\nroot.mainloop()\n```\n\n**Refer to the [GitHub home page](https://github.com/Andereoo/TkinterWeb) for more information.**\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "HTML/CSS viewer for Tkinter",
"version": "3.23.5",
"project_urls": {
"Homepage": "https://github.com/Andereoo/TkinterWeb"
},
"split_keywords": [
"tkinter",
"tkinter",
"tkhtml",
"tkhtml",
"tk",
"html",
"css",
"webbrowser"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ac09d90c1f2be4fb035811e943879db429a6bc896643636a5a9c8ca08ae83a49",
"md5": "47735d2145a641be786a8314b1a4ede9",
"sha256": "f5e7e92e1d04cfb731a3ac3cad9ce5834ca6c96aa6173f78b43d6f3f8307d4f2"
},
"downloads": -1,
"filename": "tkinterweb-3.23.5.tar.gz",
"has_sig": false,
"md5_digest": "47735d2145a641be786a8314b1a4ede9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1291999,
"upload_time": "2023-11-15T12:37:27",
"upload_time_iso_8601": "2023-11-15T12:37:27.300783Z",
"url": "https://files.pythonhosted.org/packages/ac/09/d90c1f2be4fb035811e943879db429a6bc896643636a5a9c8ca08ae83a49/tkinterweb-3.23.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-15 12:37:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Andereoo",
"github_project": "TkinterWeb",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "tkinterweb"
}