This commit is contained in:
yumoqing 2020-04-30 18:22:07 +08:00
parent 545d7336d6
commit f39861154a

View File

@ -24,6 +24,7 @@ class APlayer(BoxLayout):
can_move=False):
super().__init__(orientation='vertical')
self.ap = None
self.end_flag = False
def on_source(self,o,s):
if self.ap:
@ -34,6 +35,7 @@ class APlayer(BoxLayout):
self.play()
def __del__(self):
self.end_flag=True
self.stop()
def stop(self):