Kivy FileChooser doubleclick
问题 Could somebody post a small working example of a kivy Filechooser with the following simple doubleclick function: doubleclicking on a file will print out the filename? 回答1: Here is an example of that. from kivy.app import App from kivy.uix.filechooser import FileChooserListView from kivy.uix.boxlayout import BoxLayout class MyFileChooser(FileChooserListView): def on_submit(*args): print(args[1][0]) class MyLayout(BoxLayout): def __init__(self,**kwargs): super(MyLayout,self).__init__(**kwargs)