ttkvideo-player


Namettkvideo-player JSON
Version 0.0.2 PyPI version JSON
download
home_page
Summaryplaying video (with audio) in tkinter label
upload_time2024-01-04 07:50:08
maintainer
docs_urlNone
authorCoder-wis
requires_python>=3.6
licenseMIT
keywords video-player player video python tkinter video player tkinter video ctk video customtkinter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ttkvideo_player

ttkVideo_player: Python module for playing videos (with sound) inside tkinter Label widget using Pillow and imageio works best
&amp; fast on small size videos however takes few seconds of time for larger videos files Copyright © 2024 coder-wis <vishalsharma.pypi@gmail.com>
<br>
<br>
<h3>Built With :</h3>
<ul>
<li>tkinter & CustomTkinter (Python built-in) </li>
<li>imageio</li>
<li>Pillow</li>
</ul>
<br>
<h3>Installation: </h3>
<p>The pip command to install ttkinter videos library for use </p>
<pre><code align="center"> pip install ttkvideo_player </code></pre>
This will create a shim between your code and the module binaries that gets updated every time you change your code.
&nbsp<b><u><h3>Usage : </h3></u></b>
<ul>
<li>Import tkinter and tkvideo-moviepy<br></li>
<li>Create Tk() parent and the label you'd like to use<br></li>
<li>Get a moviepy video<br></li>
<li>Create ttkvideo_player object with its parameters(video_path, label_name,number of loops for the video if required and size of the video_screen)<br></li>
<li>Start the player thread with <player_name>.play()<br></li>
<li>Start the Tk mainloop<br></li>
</ul>
<h3>Examples</h3>
The given below is an example of the <code>'demo.py'</code> file to demonstrate the syntax :<br>
<ol>
<li><p> For Tkinter </p>
<pre lan="sh">
  import ttkvideo
  import tkinter as tk
  win=tk.Tk()
  label=tk.Label(win)
  label.pack()
  player=ttkvideo_player.Ttkvideo( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()
</pre>
</li>
<li>
<p> For Customtkinter </p>
<pre lan="sh">
  import ttkvideo
  import customtkinter as ctk
  win=ctk.Tk()
  label=ctk.Label(win)
  label.pack()
  player=ttkvideo_player.Ttkvideo( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()
</pre>
</li>
</ol>
<h3> Releases :</h3>
For the updated version <b><a href="https://pypi.org/project/ttkvideo_player/"> Latest </a></b> version.
<h3>License</h3>
Distributed under the MIT License. See <b><a href="https://github.com/Coder-wis/ttkvideo_player/blob/main/LICENSE"> LICENSE </a></b>for more information.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ttkvideo-player",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "video-player,player,video,python,tkinter video player,tkinter video,ctk video,customtkinter",
    "author": "Coder-wis",
    "author_email": "vishalsharma.pypi@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c1/31/c2f12010c4dc79723b96b28bb89d542cee2d11cb45875408236697e0070e/ttkvideo_player-0.0.2.tar.gz",
    "platform": null,
    "description": "# ttkvideo_player\r\n\r\nttkVideo_player: Python module for playing videos (with sound) inside tkinter Label widget using Pillow and imageio works best\r\n&amp; fast on small size videos however takes few seconds of time for larger videos files Copyright \u00c2\u00a9 2024 coder-wis <vishalsharma.pypi@gmail.com>\r\n<br>\r\n<br>\r\n<h3>Built With :</h3>\r\n<ul>\r\n<li>tkinter & CustomTkinter (Python built-in) </li>\r\n<li>imageio</li>\r\n<li>Pillow</li>\r\n</ul>\r\n<br>\r\n<h3>Installation: </h3>\r\n<p>The pip command to install ttkinter videos library for use </p>\r\n<pre><code align=\"center\"> pip install ttkvideo_player </code></pre>\r\nThis will create a shim between your code and the module binaries that gets updated every time you change your code.\r\n&nbsp<b><u><h3>Usage : </h3></u></b>\r\n<ul>\r\n<li>Import tkinter and tkvideo-moviepy<br></li>\r\n<li>Create Tk() parent and the label you'd like to use<br></li>\r\n<li>Get a moviepy video<br></li>\r\n<li>Create ttkvideo_player object with its parameters(video_path, label_name,number of loops for the video if required and size of the video_screen)<br></li>\r\n<li>Start the player thread with <player_name>.play()<br></li>\r\n<li>Start the Tk mainloop<br></li>\r\n</ul>\r\n<h3>Examples</h3>\r\nThe given below is an example of the <code>'demo.py'</code> file to demonstrate the syntax :<br>\r\n<ol>\r\n<li><p> For Tkinter </p>\r\n<pre lan=\"sh\">\r\n  import ttkvideo\r\n  import tkinter as tk\r\n  win=tk.Tk()\r\n  label=tk.Label(win)\r\n  label.pack()\r\n  player=ttkvideo_player.Ttkvideo( %video_path% ,label,loop=1,(640,400))\r\n  player.play()\r\n  win.mainloop()\r\n</pre>\r\n</li>\r\n<li>\r\n<p> For Customtkinter </p>\r\n<pre lan=\"sh\">\r\n  import ttkvideo\r\n  import customtkinter as ctk\r\n  win=ctk.Tk()\r\n  label=ctk.Label(win)\r\n  label.pack()\r\n  player=ttkvideo_player.Ttkvideo( %video_path% ,label,loop=1,(640,400))\r\n  player.play()\r\n  win.mainloop()\r\n</pre>\r\n</li>\r\n</ol>\r\n<h3> Releases :</h3>\r\nFor the updated version <b><a href=\"https://pypi.org/project/ttkvideo_player/\"> Latest </a></b> version.\r\n<h3>License</h3>\r\nDistributed under the MIT License. See <b><a href=\"https://github.com/Coder-wis/ttkvideo_player/blob/main/LICENSE\"> LICENSE </a></b>for more information.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "playing video (with audio) in tkinter label",
    "version": "0.0.2",
    "project_urls": null,
    "split_keywords": [
        "video-player",
        "player",
        "video",
        "python",
        "tkinter video player",
        "tkinter video",
        "ctk video",
        "customtkinter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c131c2f12010c4dc79723b96b28bb89d542cee2d11cb45875408236697e0070e",
                "md5": "46478bdbe18d6b230cd8b1a3c94b7f08",
                "sha256": "388004743f51d1e8f987bacaddc1c069ea2b49ee1f24ead86649bdfb1c7e7f2f"
            },
            "downloads": -1,
            "filename": "ttkvideo_player-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "46478bdbe18d6b230cd8b1a3c94b7f08",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4343,
            "upload_time": "2024-01-04T07:50:08",
            "upload_time_iso_8601": "2024-01-04T07:50:08.911281Z",
            "url": "https://files.pythonhosted.org/packages/c1/31/c2f12010c4dc79723b96b28bb89d542cee2d11cb45875408236697e0070e/ttkvideo_player-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-04 07:50:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ttkvideo-player"
}
        
Elapsed time: 0.16316s