<h1 align="center">tkintertools-media</h1>
<p align="center">Extension package for tkintertools to media</p>
<p align="center">
<a href="https://github.com/Xiaokang2022/tkintertools-media/releases"><img alt="Version" src="https://img.shields.io/github/v/release/Xiaokang2022/tkintertools-media?include_prereleases&logo=github&label=Version" title="Latest Version" /></a>
<a href="https://pypistats.org/packages/tkintertools-media"><img alt="Downloads" src="https://img.shields.io/pypi/dm/tkintertools-media?label=Downloads&logo=pypi&logoColor=skyblue" title="Downloads" /></a>
<a href="https://pepy.tech/project/tkintertools-media"><img alt="Total Downloads" src="https://img.shields.io/pepy/dt/tkintertools-media?logo=pypi&logoColor=gold&label=Total%20Downloads" title="Total Downloads" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media"><img alt="Size" src="https://img.shields.io/github/languages/code-size/Xiaokang2022/tkintertools-media?label=Size&logo=github" title="Code Size"/></a>
<br/>
<a href="https://github.com/Xiaokang2022/tkintertools-media/watchers"><img alt="Watchers" src="https://img.shields.io/github/watchers/Xiaokang2022/tkintertools-media?label=Watchers&logo=github&style=flat" title="Watchers" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/forks"><img alt="Forks" src="https://img.shields.io/github/forks/Xiaokang2022/tkintertools-media?label=Forks&logo=github&style=flat" title="Forks" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/Xiaokang2022/tkintertools-media?label=Stars&color=gold&logo=github&style=flat" title="Stars" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/issues"><img alt="Issues" src="https://img.shields.io/github/issues/Xiaokang2022/tkintertools-media?label=Issues&logo=github" title="Issues" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/pulls"><img alt="Pull Requests" src="https://img.shields.io/github/issues-pr/Xiaokang2022/tkintertools-media?label=Pull%20Requests&logo=github" title="Pull Requests" /></a>
<a href="https://github.com/Xiaokang2022/tkintertools-media/discussions"><img alt="Discussions" src="https://img.shields.io/github/discussions/Xiaokang2022/tkintertools-media?label=Discussions&logo=github" title="Discussions" /></a>
</p>
<p align="center">
<a href="https://github.com/Xiaokang2022/tkintertools-media/pulse"><img alt="Insights" src="https://repobeats.axiom.co/api/embed/0be944bbd1d27b25b519ea2ac7ffcdfbc98369fb.svg" /></a>
</p>
<p align="center">
<a href="https://star-history.com/#Xiaokang2022/tkintertools-media&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date" />
</picture>
</a>
</p>
📦 Installation
----------------
```bash
pip install tkintertools-media
```
> [!IMPORTANT]
> `tkintertools`: https://github.com/Xiaokang2022/tkintertools
### 👀 Preview
> [!WARNING]
> The sample video from: https://github.com/Xiaokang2022/tkintertools-demos/tree/main/assets/videos. Please note that the video is for testing purposes only and may not be used for commercial purposes!
![preview-1](./preview-1.png)
![preview-2](./preview-2.png)
```python
import tkintertools as tkt
import tkintertools.media as media
root = tkt.Tk(title="tkintertools-media")
cv = media.VideoCanvas(root, free_anchor=True, keep_ratio="min", controls=True)
cv.place(width=1280, height=720, x=640, y=360, anchor="center")
cv.open("your_video_file.mp4")
root.mainloop()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "tkintertools-media",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Xiaokang2022 <2951256653@qq.com>",
"keywords": "tkinter, tkintertools, media, cross-platform, themed, video",
"author": null,
"author_email": "Xiaokang2022 <2951256653@qq.com>",
"download_url": "https://files.pythonhosted.org/packages/88/47/dcbe94bb5f695bd2754195c6e53ecddbb9832aad3a2e2bccd11f446e9f76/tkintertools_media-1.1.1.tar.gz",
"platform": null,
"description": "<h1 align=\"center\">tkintertools-media</h1>\r\n\r\n<p align=\"center\">Extension package for tkintertools to media</p>\r\n\r\n<p align=\"center\">\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/releases\"><img alt=\"Version\" src=\"https://img.shields.io/github/v/release/Xiaokang2022/tkintertools-media?include_prereleases&logo=github&label=Version\" title=\"Latest Version\" /></a>\r\n<a href=\"https://pypistats.org/packages/tkintertools-media\"><img alt=\"Downloads\" src=\"https://img.shields.io/pypi/dm/tkintertools-media?label=Downloads&logo=pypi&logoColor=skyblue\" title=\"Downloads\" /></a>\r\n<a href=\"https://pepy.tech/project/tkintertools-media\"><img alt=\"Total Downloads\" src=\"https://img.shields.io/pepy/dt/tkintertools-media?logo=pypi&logoColor=gold&label=Total%20Downloads\" title=\"Total Downloads\" /></a>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media\"><img alt=\"Size\" src=\"https://img.shields.io/github/languages/code-size/Xiaokang2022/tkintertools-media?label=Size&logo=github\" title=\"Code Size\"/></a>\r\n<br/>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/watchers\"><img alt=\"Watchers\" src=\"https://img.shields.io/github/watchers/Xiaokang2022/tkintertools-media?label=Watchers&logo=github&style=flat\" title=\"Watchers\" /></a>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/forks\"><img alt=\"Forks\" src=\"https://img.shields.io/github/forks/Xiaokang2022/tkintertools-media?label=Forks&logo=github&style=flat\" title=\"Forks\" /></a>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/stargazers\"><img alt=\"Stars\" src=\"https://img.shields.io/github/stars/Xiaokang2022/tkintertools-media?label=Stars&color=gold&logo=github&style=flat\" title=\"Stars\" /></a>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/issues\"><img alt=\"Issues\" src=\"https://img.shields.io/github/issues/Xiaokang2022/tkintertools-media?label=Issues&logo=github\" title=\"Issues\" /></a>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/pulls\"><img alt=\"Pull Requests\" src=\"https://img.shields.io/github/issues-pr/Xiaokang2022/tkintertools-media?label=Pull%20Requests&logo=github\" title=\"Pull Requests\" /></a>\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/discussions\"><img alt=\"Discussions\" src=\"https://img.shields.io/github/discussions/Xiaokang2022/tkintertools-media?label=Discussions&logo=github\" title=\"Discussions\" /></a>\r\n</p>\r\n\r\n<p align=\"center\">\r\n<a href=\"https://github.com/Xiaokang2022/tkintertools-media/pulse\"><img alt=\"Insights\" src=\"https://repobeats.axiom.co/api/embed/0be944bbd1d27b25b519ea2ac7ffcdfbc98369fb.svg\" /></a>\r\n</p>\r\n\r\n<p align=\"center\">\r\n <a href=\"https://star-history.com/#Xiaokang2022/tkintertools-media&Date\">\r\n <picture>\r\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date&theme=dark\" />\r\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date\" />\r\n <img alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=Xiaokang2022/tkintertools-media&type=Date\" />\r\n </picture>\r\n </a>\r\n</p>\r\n\r\n\ud83d\udce6 Installation\r\n----------------\r\n\r\n```bash\r\npip install tkintertools-media\r\n```\r\n\r\n> [!IMPORTANT] \r\n> `tkintertools`: https://github.com/Xiaokang2022/tkintertools\r\n\r\n### \ud83d\udc40 Preview\r\n\r\n> [!WARNING] \r\n> The sample video from: https://github.com/Xiaokang2022/tkintertools-demos/tree/main/assets/videos. Please note that the video is for testing purposes only and may not be used for commercial purposes!\r\n\r\n![preview-1](./preview-1.png)\r\n\r\n![preview-2](./preview-2.png)\r\n\r\n```python\r\nimport tkintertools as tkt\r\nimport tkintertools.media as media\r\n\r\nroot = tkt.Tk(title=\"tkintertools-media\")\r\ncv = media.VideoCanvas(root, free_anchor=True, keep_ratio=\"min\", controls=True)\r\ncv.place(width=1280, height=720, x=640, y=360, anchor=\"center\")\r\ncv.open(\"your_video_file.mp4\")\r\nroot.mainloop()\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Extension package for tkintertools to matplotlib",
"version": "1.1.1",
"project_urls": {
"Bug tracker": "https://github.com/Xiaokang2022/tkintertools-media/issues",
"Source code": "https://github.com/Xiaokang2022/tkintertools-media"
},
"split_keywords": [
"tkinter",
" tkintertools",
" media",
" cross-platform",
" themed",
" video"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9b00af4cd9d10988df522d952caad25a0564d88d385a20b44573b29da192132f",
"md5": "0fa485567e565ffc84b41d7089ee548a",
"sha256": "614bf7accfdcaa924115ebd0d7e63b644a1b72691a03de7a6f344886fe985866"
},
"downloads": -1,
"filename": "tkintertools_media-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0fa485567e565ffc84b41d7089ee548a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 9813,
"upload_time": "2024-09-20T14:11:45",
"upload_time_iso_8601": "2024-09-20T14:11:45.115955Z",
"url": "https://files.pythonhosted.org/packages/9b/00/af4cd9d10988df522d952caad25a0564d88d385a20b44573b29da192132f/tkintertools_media-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8847dcbe94bb5f695bd2754195c6e53ecddbb9832aad3a2e2bccd11f446e9f76",
"md5": "d439cb03a8d41c9c0f21b9814e75c61c",
"sha256": "6f481feaccee24608b4e1d949ad2d2223b0801cf3bd08fd9b8af7fb0ee2551ab"
},
"downloads": -1,
"filename": "tkintertools_media-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "d439cb03a8d41c9c0f21b9814e75c61c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 10186,
"upload_time": "2024-09-20T14:11:46",
"upload_time_iso_8601": "2024-09-20T14:11:46.445687Z",
"url": "https://files.pythonhosted.org/packages/88/47/dcbe94bb5f695bd2754195c6e53ecddbb9832aad3a2e2bccd11f446e9f76/tkintertools_media-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-20 14:11:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Xiaokang2022",
"github_project": "tkintertools-media",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tkintertools-media"
}