def on_parent(self, *a): if self.parent is None: infolabel.remove_info_on_mouse() return super(HoverInfoBehavior, self).on_parent(*a)
def on_hover(self, *a): if self.hover: Clock.schedule_once(self.show_label_info, 1) else: Clock.unschedule(self.show_label_info) infolabel.remove_info_on_mouse()
def on_parent(self, *a): if self.parent is None: infolabel.remove_info_on_mouse() return super(TabToggleButton, self).on_parent(*a)