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  
Sharma659615@gmail.com
Built With :
- tkinter & CustomTkinter (Python built-in)
- imageio
- Pillow
Installation:
The pip command to install ttkinter videos library for use
pip install ttkvideos
This will create a shim between your code and the module binaries that gets updated every time you change your code.
Usage :
- Import tkinter and tkvideo-moviepy
- Create Tk() parent and the label you'd like to use
- Get a moviepy video
- Create tkvideo object with its parameters(video_path, label_name,number of loops for the video if required and size of the video_screen)
- Start the player thread with .play()
- Start the Tk mainloop
Examples
The given below is an example of the'demo.py' file to demonstrate the syntax :For Tkinter
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()
-
For Customtkinter
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()
Releases :
For the updated version Latest version.License
Distributed under the MIT License. See LICENSE for more information.Metadata
Release files for ttkvideos 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ttkvideos-0.0.4.tar.gz | 4.6 kB | Without provenance | Details for ttkvideos-0.0.4.tar.gz |
Release files / ttkvideos-0.0.4.tar.gz
| Download URL | ttkvideos-0.0.4.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dc4b7f3ac1cdf6b8d62d04169de11079be38f5c24f2ff4f6b753d4c8ee6e70e
|
|
BLAKE2b-256 checksum How to use checksums |
82edf437e61023b413cf89b0c87220413beee80dc243529ca7992e15b82225c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for ttkvideos 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.