bugfix
This commit is contained in:
parent
545d7336d6
commit
f39861154a
@ -24,6 +24,7 @@ class APlayer(BoxLayout):
|
|||||||
can_move=False):
|
can_move=False):
|
||||||
super().__init__(orientation='vertical')
|
super().__init__(orientation='vertical')
|
||||||
self.ap = None
|
self.ap = None
|
||||||
|
self.end_flag = False
|
||||||
|
|
||||||
def on_source(self,o,s):
|
def on_source(self,o,s):
|
||||||
if self.ap:
|
if self.ap:
|
||||||
@ -34,6 +35,7 @@ class APlayer(BoxLayout):
|
|||||||
self.play()
|
self.play()
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
self.end_flag=True
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user