From adfda12530ca5adceedd4dc63974d9203f60c7ac Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 12 Oct 2020 23:03:14 +0800 Subject: [PATCH] bugfix --- kivyblocks/newvideo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kivyblocks/newvideo.py b/kivyblocks/newvideo.py index 2ca5abc..43e6856 100644 --- a/kivyblocks/newvideo.py +++ b/kivyblocks/newvideo.py @@ -6,15 +6,17 @@ from kivy.properties import BooleanProperty from ffpyplayer.tools import set_log_callback +from kivyblocks.bgcolorbehavior import BGColorBehavior logger_func = {'quiet': Logger.critical, 'panic': Logger.critical, 'fatal': Logger.critical, 'error': Logger.error, 'warning': Logger.warning, 'info': Logger.info, 'verbose': Logger.debug, 'debug': Logger.debug} -class NewVideo(Video): +class NewVideo(BGColorBehavior, Video): def __init__(self,**kw): - super(NewVideo, self).__init__(**kw) + Video.__init__(self, **kw) + BGColorBehavior.__init__(self) Window.allow_screensaver = False set_log_callback(self.ffplayerLog) if hasattr(self._video, '_ffplayer'):