videoEdit.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:PYEdit 作者: Congren 项目源码 文件源码
def editTwo(event):
    canvas = event.widget.canvas
    try:
        canvas.selected = 2
        canvas.condition = 3
        canvas.end = False
        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')

#processes word insertion
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号