This library helps you play videos in tkinter
Project description
TkVideoplayer
This is a simple library to play video files in tkinter. This library also provides the ability to play, pause, skip and seek specific frames.
Example:
import tkinter as tk
from tkVideoPlayer import TkinterVideo
root = tk.Tk()
videoplayer = TkinterVideo(master=root, scaled=True, pre_load=False)
videoplayer.load(r"samplevideo.mp4")
videoplayer.pack(expand=True, fill="both")
videoplayer.play() # play the video
root.mainloop()
Note: the master argument has to be explicitly set, you cannot use
TkinterVideo(root)
, instead you must useTkinterVideo(master=root)
.
read the documentation here
Sample video player made using tkVideoPlayer:
This example source code can be found here
Other libraries you might be interested in:
-
tkstylesheet - Helps you style your tkinter application using stylesheets.
-
tkTimePicker - An easy-to-use timepicker.
-
PyCollision - Helps you draw hitboxes for 2d games.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tkvideoplayer-1.3.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for tkvideoplayer-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9dbf9d7a89babd5502b76aacddb20d82a6d3b6dda03bff0219b7d8d952b2be |
|
MD5 | 434f09598a74c3eb8eff0c250ace908b |
|
BLAKE2b-256 | a5f7271523a62a182070fe6bc98a102f8e8ced4db7b63efe8c502619e3e70694 |