From 86e7ad89f66a271d816822c021fa515193ddc914 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 22 Jun 2021 14:44:17 +0800 Subject: [PATCH] bugfix --- kivyblocks/dg.py | 6 +++--- kivyblocks/register.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kivyblocks/dg.py b/kivyblocks/dg.py index a8c6628..3d4cd10 100644 --- a/kivyblocks/dg.py +++ b/kivyblocks/dg.py @@ -20,7 +20,7 @@ from appPublic.myTE import string_template_render from .utils import CSize, setSizeOptions, loading, loaded, absurl, alert from .baseWidget import Text, HBox, VBox -from .widgetExt import ScrollWidget +from .scrollpanel import ScrollPanel from .paging import Paging, RelatedLoader from .ready import WidgetReady from .toolbar import Toolbar @@ -155,7 +155,7 @@ class Row(BoxLayout): self.part.datagrid.select_row = self self.part.datagrid.dispatch('on_selected',self) -class Header(WidgetReady, ScrollWidget): +class Header(WidgetReady, ScrollPanel): def __init__(self,part,**kw): super(Header, self).__init__(**kw) self.part = part @@ -173,7 +173,7 @@ class Header(WidgetReady, ScrollWidget): self.add_widget(self.header) self.height = self.header.height -class Body(WidgetReady, ScrollWidget): +class Body(WidgetReady, ScrollPanel): def __init__(self,part,**kw): self.part = part kw.update({'spacing':self.part.datagrid.linewidth}) diff --git a/kivyblocks/register.py b/kivyblocks/register.py index 7c3b942..2129905 100644 --- a/kivyblocks/register.py +++ b/kivyblocks/register.py @@ -32,10 +32,12 @@ from .custom_camera import CustomCamera, QrReader if kivy.platform in ['win','linux', 'macosx']: from .camerawithmic import ScreenWithMic from .camerawithmic import CameraWithMic +from .scrollpanel import ScrollPanel r = Factory.register if kivy.platform in ['win','linux', 'macosx']: r('ScreenWithMic', ScreenWithMic) +r('ScrollPanel', ScrollPanel) r('TextInput', TextInput) r('CameraWithMic', CameraWithMic) r('CustomCamera', CustomCamera)