def _in_out(self, dt):
self._duration -= dt * 1000
if self._duration <= 0:
self._transparency = 1.0 + (self._duration / self._rampdown)
if -(self._duration) > self._rampdown:
Window.remove_widget(self)
return False
文章目录