def editFive(event):
canvas = event.widget.canvas
try:
canvas.selected = 5
canvas.condition = 3
currdir = os.getcwd()
root = Tkinter.Tk()
root.withdraw()
temp = tkFileDialog.askopenfilename(parent=root, initialdir=currdir, \
title='Please select a Sound File')
if len(temp) > 0:
canvas.path2 = temp
canvas.duration = int(VideoFileClip(canvas.message).duration)
canvas.duration2 = int(AudioFileClip(canvas.path2).duration)
canvas.end1 = int(VideoFileClip(canvas.message).duration)
canvas.end2 = int(AudioFileClip(canvas.path2).duration)
redrawAll(canvas)
except:
canvas.condition = 2
canvas.create_text(250,10,text='Please Try Again')
#removes audio from clip
评论列表
文章目录