{"id":38143560,"url":"https://github.com/bauripalash/tkhtmlview","last_synced_at":"2026-02-12T15:09:13.499Z","repository":{"id":43278116,"uuid":"232333518","full_name":"bauripalash/tkhtmlview","owner":"bauripalash","description":"Display HTML with Tkinter ;)","archived":false,"fork":false,"pushed_at":"2025-10-01T05:05:39.000Z","size":130,"stargazers_count":88,"open_issues_count":8,"forks_count":22,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-27T18:38:43.788Z","etag":null,"topics":["gui","gui-library","html","python","tkinter","webview"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/tkhtmlview/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bauripalash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["bauripalash"],"patreon":null,"open_collective":null,"ko_fi":"palash","tidelift":null,"community_bridge":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/bauripalash"]}},"created_at":"2020-01-07T13:45:13.000Z","updated_at":"2025-11-24T22:57:51.000Z","dependencies_parsed_at":"2024-04-13T16:33:49.796Z","dependency_job_id":"3b9fa181-c3f7-4cfd-9c00-b5255374e5ec","html_url":"https://github.com/bauripalash/tkhtmlview","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bauripalash/tkhtmlview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauripalash%2Ftkhtmlview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauripalash%2Ftkhtmlview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauripalash%2Ftkhtmlview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauripalash%2Ftkhtmlview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bauripalash","download_url":"https://codeload.github.com/bauripalash/tkhtmlview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bauripalash%2Ftkhtmlview/sbom","scorecard":{"id":227375,"data":{"date":"2025-08-11","repo":{"name":"github.com/bauripalash/tkhtmlview","commit":"30ce6a46ab69901b7c0e354f2c2eb98dab56d8e4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 9/24 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish-to-pypi.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bauripalash/tkhtmlview/publish-to-pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/bauripalash/tkhtmlview/publish-to-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/bauripalash/tkhtmlview/publish-to-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-to-pypi.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/bauripalash/tkhtmlview/publish-to-pypi.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish-to-pypi.yml:18","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.3.1 not signed: https://api.github.com/repos/bauripalash/tkhtmlview/releases/165189480","Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/bauripalash/tkhtmlview/releases/147722552","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/bauripalash/tkhtmlview/releases/98650057","Warn: release artifact v0.1.4 not signed: https://api.github.com/repos/bauripalash/tkhtmlview/releases/96630466","Warn: release artifact v0.1.3 not signed: https://api.github.com/repos/bauripalash/tkhtmlview/releases/93791274","Warn: release artifact v0.3.1 does not have provenance: https://api.github.com/repos/bauripalash/tkhtmlview/releases/165189480","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/bauripalash/tkhtmlview/releases/147722552","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/bauripalash/tkhtmlview/releases/98650057","Warn: release artifact v0.1.4 does not have provenance: https://api.github.com/repos/bauripalash/tkhtmlview/releases/96630466","Warn: release artifact v0.1.3 does not have provenance: https://api.github.com/repos/bauripalash/tkhtmlview/releases/93791274"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish-to-pypi.yml:6"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T04:04:50.890Z","repository_id":43278116,"created_at":"2025-08-17T04:04:50.890Z","updated_at":"2025-08-17T04:04:50.890Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29369551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","gui-library","html","python","tkinter","webview"],"created_at":"2026-01-16T22:53:17.806Z","updated_at":"2026-02-12T15:09:13.494Z","avatar_url":"https://github.com/bauripalash.png","language":"Python","funding_links":["https://github.com/sponsors/bauripalash","https://ko-fi.com/palash","https://paypal.me/bauripalash"],"categories":[],"sub_categories":[],"readme":"# tkhtmlview\n\n![PyPI](https://img.shields.io/pypi/v/tkhtmlview?logo=python\u0026style=flat-square)\n[![Publish to Pypi](https://github.com/bauripalash/tkhtmlview/actions/workflows/publish-to-pypi.yml/badge.svg)](https://github.com/bauripalash/tkhtmlview/actions/workflows/publish-to-pypi.yml)\n\nHTML widgets for tkinter\n\n\u003e Fork of [tk_html_widgets](https://github.com/paolo-gurisatti/tk_html_widgets)\n\n## Overview\n\nThis module is a collection of tkinter widgets whose text can be set in HTML format.\nA HTML widget isn't a web browser frame, it's only a simple and lightweight HTML parser that formats the tags used by the tkinter Text base class.\nThe widgets behaviour is similar to the PyQt5 text widgets (see the [PyQt5 HTML markup subset](http://doc.qt.io/qt-5/richtext-html-subset.html)).\n\n## Installation\n\n`pip install tkhtmlview`\n\n## Requirements\n\n- [Python 3.10 or later](https://www.python.org/downloads/) with tcl/tk support\n- [Pillow 11 or later](https://github.com/python-pillow/Pillow)\n- requests\n\n## Example\n\n```python\nimport tkinter as tk\nfrom tkhtmlview import HTMLLabel\n\nroot = tk.Tk()\nhtml_label = HTMLLabel(root, html='\u003ch1 style=\"color: red; text-align: center\"\u003e Hello World \u003c/H1\u003e')\nhtml_label.pack(fill=\"both\", expand=True)\nhtml_label.fit_height()\nroot.mainloop()\n```\n\nYou can also save html in a separate .html file and then use `RenderHTML` to render html for widgets.\n\n- _index.html_\n\n    ```html\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n        \u003cbody\u003e\n            \u003ch1\u003eOrange is so Orange\u003c/h1\u003e\n            \u003cimg\n            src=\"https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg\"\n            /\u003e\n            \u003cp\u003e\n            The orange is the fruit of various citrus species in the family Rutaceae;\n            it primarily refers to Citrus × sinensis, which is also called sweet\n            orange, to distinguish it from the related Citrus × aurantium, referred to\n            as bitter orange.\n            \u003c/p\u003e\n        \u003c/body\u003e\n    \u003c/html\u003e\n    ```\n\n- _demo.py_\n\n    ```python\n    import tkinter as tk\n    from tkhtmlview import HTMLText, RenderHTML\n\n    root = tk.Tk()\n    html_label = HTMLText(root, html=RenderHTML('index.html'))\n    html_label.pack(fill=\"both\", expand=True)\n    html_label.fit_height()\n    root.mainloop()\n    ```\n\n## Documentation\n\n### Classes\n\nAll widget classes inherits from the tkinter.Text() base class.\n\n#### class HTMLScrolledText(tkinter.Text)\n\n\u003e Text-box widget with vertical scrollbar\n\n#### class HTMLText(tkinter.Text)\n\n\u003e Text-box widget without vertical scrollbar\n\n#### class HTMLLabel(tkinter.Text)\n\n\u003e Text-box widget with label appearance\n\n#### class RenderHTML\n\n\u003e RenderHTML class will render HTML from .html file for the widgets.\n\n### Methods\n\n#### def set_html(self, html, strip=True)\n\n\u003e **Description:** Sets the text in HTML format. \u003cbr\u003e \u003e **Args:**\n\u003e\n\u003e - _html_: input HTML string\n\u003e - _strip_: if True (default) handles spaces in HTML-like style\n\n#### def fit_height(self)\n\n\u003e **Description:** Fit widget height in order to display all wrapped lines\n\n### HTML support\n\nOnly a subset of the whole HTML tags and attributes are supported (see table below).\nWhere is possibile, I hope to add more HTML support in the next releases.\n\n| **Tags** | **Attributes**     | **Notes**                              |\n| -------- | ------------------ | -------------------------------------- |\n| a        | style, href        |\n| b        | style              |\n| br       |                    |\n| code     | style              |\n| div      | style              |\n| em       | style              |\n| h1       | style              |\n| h2       | style              |\n| h3       | style              |\n| h4       | style              |\n| h5       | style              |\n| h6       | style              |\n| i        | style              |\n| img      | src, width, height | experimental support for remote images |\n| li       | style              |\n| mark     | style              |\n| ol       | style, type        | 1, a, A list types only                |\n| p        | style              |\n| pre      | style              |\n| span     | style              |\n| strong   | style              |\n| u        | style              |\n| ul       | style              | bullet glyphs only                     |\n| table,tr,th,td | - | basic support|\n\n\u003e Note: All styles are not supported;\n\u003e align with justify is not supported; it falls back to left align\n\n## License\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fbauripalash%2Ftkhtmlview.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fbauripalash%2Ftkhtmlview?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbauripalash%2Ftkhtmlview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbauripalash%2Ftkhtmlview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbauripalash%2Ftkhtmlview/lists"}