Skip to content

Set Size of Video Player without taking both sides #40

Answered by PaulleDemon
chuntimchan asked this question in Q&A
Discussion options

You must be logged in to vote

Specify the height and width in .place(x=300, y=100, width=1000, height=1000)

import tkinter as tk
from tkVideoPlayer import TkinterVideo
root = tk.Tk()


frame = tk.Frame(root, width=1000, height=100)
frame.place(x=300, y=100, width=1000, height=1000) # <-- notice here

player = TkinterVideo(frame, scaled=True)
player.load("test2.mp4")
player.pack(expand=True, fill="both")
player.play()
root.mainloop()

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chuntimchan
Comment options

@PaulleDemon
Comment options

Answer selected by chuntimchan
@chuntimchan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants