kivy:如何连接Imagebutton?

kivy: How to connect Imagebutton?

这是我的代码。我想在按钮中添加 Open_file

<ImgButton>
    id: open_file
    FloatLayout:
        orientation: "vertical"
        spacing: dp(5)
        ImageButton:
            source:'.\download (1).jfif'
            pos: 50,450
            size_hint : .8,.4
            allow_stretch: False
            keep_ratio: True
            on_press: root.button()

如何连接按钮?

class ImgButton(Screen):
  pass

谁能帮我看看这些代码是怎么做的?

我有连接图片按钮的解决方案... ImgButton.kv

<ImgButton>
    id: open_file
    FloatLayout:
        orientation: "vertical"
        spacing: dp(5)
        on_release: root.manager.current='Open_file'
        ImageButton:
            source:'.\download (1).jfif'
            pos: 50,450
            size_hint : .8,.4
            allow_stretch: False
            keep_ratio: True
            on_press: root.button()
            

ImgButton.py

class ImgButton(Screen):
   pass