def exit(self, dt): Clock.unschedule(self.exit) anim = Animation(y = metrics.dp(-50), t = 'in_out_expo') anim.start(self)