Post

askopenfiles

SimpleKivy.SimpleKivy.MyApp.askopenfiles(self, filetypes=(('All files', '*.*'),), callback=None, **kw)

Creates a native platform file dialog to open multiple files.

  • 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.
This post is licensed under CC BY 4.0 by the author.