ttkvideos


Namettkvideos JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/Vishal24102002/ttkvideos
Summaryplaying video (with audio) in tkinter label
upload_time2023-12-01 04:18:44
maintainer
docs_urlNone
authorVishal Sharma
requires_python>=3.6
licenseLicense
keywords videos
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ttkvideos

tkVideo: Python module for playing videos (with sound) inside tkinter Label widget using Pillow and imageio works best & fast on small size videos however takes few seconds of time for larger videos files Copyright © 2023 vishal sharma &nbsp
<Sharma659615@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 ttkvideos </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 tkvideo 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 ttkvideos
  import tkinter as tk
  win=tk.Tk()
  label=tk.Label(win)
  label.pack()
  player=ttkvideos.Ttkvideos( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()
</pre>
</li>
<li>
<p> For Customtkinter </p>
<pre lan="sh">
  import ttkvideos
  import customtkinter as ctk
  win=ctk.Tk()
  label=ctk.Label(win)
  label.pack()
  player=ttkvideos.Ttkvideos( %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://github.com/Vishal24102002/ttkvideos/tree/main"><u> Latest </u></a></b> version.
<h3>License</h3>
Distributed under the MIT License. See <b><a href="https://github.com/Vishal24102002/ttkvideos/blob/main/Licence.txt"> LICENSE </a></b>for more information.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Vishal24102002/ttkvideos",
    "name": "ttkvideos",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "videos",
    "author": "Vishal Sharma",
    "author_email": "vishalsharma659615@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/82/ed/f437e61023b413cf89b0c87220413beee80dc243529ca7992e15b82225c7/ttkvideos-0.0.4.tar.gz",
    "platform": null,
    "description": "# ttkvideos\r\n\r\ntkVideo: 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 \u00c2\u00a9 2023 vishal sharma &nbsp\r\n<Sharma659615@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 ttkvideos </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 tkvideo 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 ttkvideos\r\n  import tkinter as tk\r\n  win=tk.Tk()\r\n  label=tk.Label(win)\r\n  label.pack()\r\n  player=ttkvideos.Ttkvideos( %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 ttkvideos\r\n  import customtkinter as ctk\r\n  win=ctk.Tk()\r\n  label=ctk.Label(win)\r\n  label.pack()\r\n  player=ttkvideos.Ttkvideos( %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://github.com/Vishal24102002/ttkvideos/tree/main\"><u> Latest </u></a></b> version.\r\n<h3>License</h3>\r\nDistributed under the MIT License. See <b><a href=\"https://github.com/Vishal24102002/ttkvideos/blob/main/Licence.txt\"> LICENSE </a></b>for more information.\r\n",
    "bugtrack_url": null,
    "license": "License",
    "summary": "playing video (with audio) in tkinter label",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/Vishal24102002/ttkvideos"
    },
    "split_keywords": [
        "videos"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82edf437e61023b413cf89b0c87220413beee80dc243529ca7992e15b82225c7",
                "md5": "0959291cd97f6e789ee714121e68bf90",
                "sha256": "8dc4b7f3ac1cdf6b8d62d04169de11079be38f5c24f2ff4f6b753d4c8ee6e70e"
            },
            "downloads": -1,
            "filename": "ttkvideos-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "0959291cd97f6e789ee714121e68bf90",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4638,
            "upload_time": "2023-12-01T04:18:44",
            "upload_time_iso_8601": "2023-12-01T04:18:44.625589Z",
            "url": "https://files.pythonhosted.org/packages/82/ed/f437e61023b413cf89b0c87220413beee80dc243529ca7992e15b82225c7/ttkvideos-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-01 04:18:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Vishal24102002",
    "github_project": "ttkvideos",
    "github_not_found": true,
    "lcname": "ttkvideos"
}
        
Elapsed time: 0.16712s