videoEdit.py 文件源码

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

项目:PYEdit 作者: Congren 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号