def __init__(self, **kwargs):
self.register_event_type('on_focus_textinput')
super(FocusBehavior, self).__init__(**kwargs)
self.fbind('focus', self.remove_other_focused)
self.fbind('is_focusable', self.update_is_focusable)
if not self.is_subfocus:
self.bind(parent=on_parent)
if self.grab_focus and self.is_focusable:
self.focus_widget(self)
评论列表
文章目录