This commit is contained in:
yumoqing 2019-12-24 10:07:58 +08:00
parent 89e84240e0
commit 53e3a9ce6f
2 changed files with 7 additions and 3 deletions

View File

@ -51,6 +51,8 @@ class PageContainer(FloatLayout):
def previous(self,v=None):
if len(self.pageWidgets) <= 1:
return
w = self.pageWidgets[-1]
w.beforeDestroy()
self.pageWidgets = self.pageWidgets[:-1]
self.showLastPage()

View File

@ -194,7 +194,7 @@ class VPlayer(FloatLayout):
def beforeDestroy(self):
try:
self.pause()
self.stop()
except Exception as e:
print_exc()
return True
@ -358,8 +358,10 @@ class VPlayer(FloatLayout):
btn.source = blockImage('mute.jpg')
def stop(self):
print(self)
self._video.state = 'stop'
try:
self._video.state = 'stop'
except:
print_exc()
def on_disabled(self,o,v):
if self.disabled: