def specialFour(event):
#points to condition 5 and gets duration and w/h to display
canvas = event.widget.canvas
try:
canvas.condition = 5
currdir = os.getcwd()
root = Tkinter.Tk()
root.withdraw()
temp = tkFileDialog.askopenfilename(parent=root, initialdir=currdir,\
title='Please select a Video File')
if len(temp) > 0:
canvas.path2 = temp
video = VideoFileClip(canvas.message)
video2 = VideoFileClip(canvas.path2)
canvas.duration = int(video.duration)
canvas.duration2 = int(video2.duration)
canvas.w = video.w
canvas.h = video.h
redrawAll(canvas)
except:
canvas.condition = 4
canvas.create_text(250,10,text='Please Try Again')
评论列表
文章目录