From 5ca4e8ff997a380f95ecc17c06e93c39939b2ecc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 8 Aug 2020 16:05:01 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 2 ++ kivyblocks/vplayer.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index c1b1ad0..0805f8a 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -19,6 +19,7 @@ from kivy.properties import BooleanProperty from kivy.uix.widget import Widget from kivy.app import App from kivy.factory import Factory +from kivy.uix.video import Video from .baseWidget import * from .toolbar import * from .dg import DataGrid @@ -499,3 +500,4 @@ class Blocks(EventDispatcher): return Factory.register('Blocks',Blocks) +Factory.register('Video',Video) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 61fb6e8..257b020 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -73,7 +73,7 @@ class BaseVPlayer(FloatLayout): def on_size(self,*args): self._video.size = self.size - print('*********************on_size()**************') + print('****on_size()****',self.pos,self.size,self._video.pos,self._video.size) def positionChanged(self,o,v): if self.muteFlg: