<legend id='zwJ1X'><style id='zwJ1X'><dir id='zwJ1X'><q id='zwJ1X'></q></dir></style></legend>

        <bdo id='zwJ1X'></bdo><ul id='zwJ1X'></ul>

      <small id='zwJ1X'></small><noframes id='zwJ1X'>

      <tfoot id='zwJ1X'></tfoot>

        <i id='zwJ1X'><tr id='zwJ1X'><dt id='zwJ1X'><q id='zwJ1X'><span id='zwJ1X'><b id='zwJ1X'><form id='zwJ1X'><ins id='zwJ1X'></ins><ul id='zwJ1X'></ul><sub id='zwJ1X'></sub></form><legend id='zwJ1X'></legend><bdo id='zwJ1X'><pre id='zwJ1X'><center id='zwJ1X'></center></pre></bdo></b><th id='zwJ1X'></th></span></q></dt></tr></i><div id='zwJ1X'><tfoot id='zwJ1X'></tfoot><dl id='zwJ1X'><fieldset id='zwJ1X'></fieldset></dl></div>
      1. Kivy FileChooser 双击

        时间:2023-10-10
        <tfoot id='KRbwd'></tfoot>
          <bdo id='KRbwd'></bdo><ul id='KRbwd'></ul>

                  <tbody id='KRbwd'></tbody>
                • <small id='KRbwd'></small><noframes id='KRbwd'>

                  <legend id='KRbwd'><style id='KRbwd'><dir id='KRbwd'><q id='KRbwd'></q></dir></style></legend>
                  <i id='KRbwd'><tr id='KRbwd'><dt id='KRbwd'><q id='KRbwd'><span id='KRbwd'><b id='KRbwd'><form id='KRbwd'><ins id='KRbwd'></ins><ul id='KRbwd'></ul><sub id='KRbwd'></sub></form><legend id='KRbwd'></legend><bdo id='KRbwd'><pre id='KRbwd'><center id='KRbwd'></center></pre></bdo></b><th id='KRbwd'></th></span></q></dt></tr></i><div id='KRbwd'><tfoot id='KRbwd'></tfoot><dl id='KRbwd'><fieldset id='KRbwd'></fieldset></dl></div>

                  本文介绍了Kivy FileChooser 双击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  有人可以发布一个带有以下简单双击功能的 kivy Filechooser 的小型工作示例:双击文件将打印出文件名?

                  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?

                  推荐答案

                  这是一个例子.

                  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)
                          # filter added. Since windows will throw error on sys files
                          self.fclv = MyFileChooser(filters= [lambda folder, filename: not filename.endswith('.sys')])
                          self.add_widget(self.fclv)
                  
                  
                  class MyApp(App):
                  
                      def build(self):
                          return MyLayout()
                  
                  
                  MyApp().run()
                  

                  这篇关于Kivy FileChooser 双击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 Kivy 中有更新时间 下一篇:Kivy 没有正确显示(孟加拉语)加入角色?

                  相关文章

                  最新文章

                  <legend id='mz1oK'><style id='mz1oK'><dir id='mz1oK'><q id='mz1oK'></q></dir></style></legend>

                    <bdo id='mz1oK'></bdo><ul id='mz1oK'></ul>
                  <tfoot id='mz1oK'></tfoot>

                  1. <small id='mz1oK'></small><noframes id='mz1oK'>

                    <i id='mz1oK'><tr id='mz1oK'><dt id='mz1oK'><q id='mz1oK'><span id='mz1oK'><b id='mz1oK'><form id='mz1oK'><ins id='mz1oK'></ins><ul id='mz1oK'></ul><sub id='mz1oK'></sub></form><legend id='mz1oK'></legend><bdo id='mz1oK'><pre id='mz1oK'><center id='mz1oK'></center></pre></bdo></b><th id='mz1oK'></th></span></q></dt></tr></i><div id='mz1oK'><tfoot id='mz1oK'></tfoot><dl id='mz1oK'><fieldset id='mz1oK'></fieldset></dl></div>