From 93aaa1ecbb3d0b1ed886b2da6169eda059eeef80 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 6 Feb 2021 21:55:09 +0800 Subject: [PATCH] bugfix --- kivyblocks/register.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kivyblocks/register.py b/kivyblocks/register.py index 6b39744..834c179 100644 --- a/kivyblocks/register.py +++ b/kivyblocks/register.py @@ -25,14 +25,14 @@ from .message import Conform from .pagepanel import PagePanel from .markdown import Markdown from .custom_camera import CustomCamera, QrReader -from .camerawithmic import CameraWithMic -#if kivy.platform in ['win','linux', 'macosx']: -# from .camerawithmic import ScreenWithMic +if kivy.platform in ['win','linux', 'macosx']: + from .camerawithmic import ScreenWithMic + from .camerawithmic import CameraWithMic r = Factory.register if kivy.platform in ['win','linux', 'macosx']: r('ScreenWithMic', ScreenWithMic) -# r('CameraWithMic', CameraWithMic) + r('CameraWithMic', CameraWithMic) r('CustomCamera', CustomCamera) r('QrReader', QrReader) r('Markdown', Markdown)