Kivy Unfocus or blur event for textinput

206 views
Skip to first unread message

Jaykishen Khemani

unread,
Jul 9, 2019, 4:39:44 PM7/9/19
to Kivy users support
hello Sir i am working on a project that is based on kivy and i am struck at a positon where i need to call a function on defocusing on a particular textinput is there any method available for it or if any solution please help

Elliot Garbus

unread,
Jul 9, 2019, 8:00:54 PM7/9/19
to kivy-...@googlegroups.com
see: https://kivy.org/doc/stable/api-kivy.uix.behaviors.html#kivy.uix.behaviors.FocusBehavior

focusAdded in 1.9.0

Whether the instance currently has focus.

Setting it to True will bind to and/or request the keyboard, and input will be forwarded to the instance. Setting it to False will unbind and/or release the keyboard. For a given keyboard, only one widget can have its focus, so focusing one will automatically unfocus the other instance holding its focus.

TextInput inherits from focus behavior.  Set focus to False.

On 7/9/2019 1:39 PM, Jaykishen Khemani wrote:
hello Sir i am working on a project that is based on kivy and i am struck at a positon where i need to call a function on defocusing on a particular textinput is there any method available for it or if any solution please help
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/aca4e52f-808a-4191-8494-459599d3e723%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages