askopenfile
SimpleKivy.SimpleKivy.MyApp.askopenfile(self, filetypes=(('All files', '*.*'),), callback=None, **kw)
Creates a native platform file dialog to open a file.
initialdir: Initial directory. Defaults to"./".
filetypes: Defined as a tuple containing inner tuples. Each inner tuple defines a file type:(("Text Files", "*.txt"), ("Image files", "*.png *.jpg *.jpeg"))
callback (None or function): Called with the returned value as argument. Only triggered when it is not cancelled.
**kw: File dialog keyword arguments. See tkinter documentation for more information
This post is licensed under CC BY 4.0 by the author.