'How to open a videofile via tkinter?

This is my code

    from tkinter import filedialog
    .... Some code ......
    self.askfile = filedialog.askopenfile() 

Can you show me how to open video formats such as (avi, flv, mp4)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source