[Solved] Display and play audio files


Here is a simple example of how to show all 3gp files in your current directory.

from kivy.app import App
from kivy.uix.filechooser import FileChooserListView
from kivy.uix.boxlayout import BoxLayout


class MyLayout(BoxLayout):

    def __init__(self,**kwargs):
        super(MyLayout,self).__init__(**kwargs)
        self.fclv = FileChooserListView(path=".", filters= ['*.3gp'])
        self.add_widget(self.fclv)


class MyApp(App):

    def build(self):
        return MyLayout()


MyApp().run()

Result is:

Files in a ListView

2

solved Display and play audio files