1

I have few video files that I would like to play when I click a button in the tkinter window. Preferably in VLC or in the Tkinter window itself if possible.

I'm using mac.

Tried pip installing VLC and os.startfile. Tried most of the solutions provided here in stackoverflow.

import tkinter as tk
from tkinter import ttk
root = tk.Tk()
def video(): 
   os.startfile('FILENAME')
vid = tk.Button(root, text="play", bg='gray', command=video)
vid.pack()
root.mainloop()
Advik
  • 43
  • 9

0 Answers0