Search code examples
pythonkivykivy-language

What is the difference between on_press and on_release in kivy python


I need to know what is the difference between on_press and on_release in kivy and python button


Solution

  • on_press triggers only when you press the button. On the other hand, on_release fires only when you release the button. This link from the docs that was sent in the comments should help: https://kivy.org/doc/stable/api-kivy.uix.behaviors.button.html