I want to open a video from my desktop with python

0

I use this code but it marks me access denied. what I want to do is that from the interface that I create I can open a video and play it from that interface

import os
from tkinter import *

app = Tk()
app.title('Video Player')

Fcanvas = Canvas(bg="black", height=600, width=170)


def snd1():
    os.system("/Users/niet/Desktop/sinsajo.mp4")

var = IntVar()

rb1 = Radiobutton(app, text= "Play Video", variable = var, value=1, command=snd1)
rb1.pack(anchor = W)
Fcanvas.pack()
app.mainloop()
    
asked by aryam 04.10.2017 в 21:19
source

0 answers