This commit is contained in:
yumoqing 2021-02-03 18:58:46 +08:00
parent ac8b3969cb
commit 606a0854d6

View File

@ -1,13 +1,14 @@
import kivy import kivy
from PIL import ImageGrab
import numpy as np import numpy as np
from .micphone import Micphone from .micphone import Micphone
from kivy.uix.camera import Camera from kivy.uix.camera import Camera
from kivy.properties import NumericProperty from kivy.properties import NumericProperty
from kivy.event import EventDispatcher from kivy.event import EventDispatcher
class ScreenWithMic(Micphone, EventDispatcher): if kivy.platform in [ 'win', 'linux', 'macosx' ]:
from PIL import ImageGrab
class ScreenWithMic(Micphone, EventDispatcher):
def __init__(self, **kw): def __init__(self, **kw):
super(ScreenWithMic, self).__init__(**kw) super(ScreenWithMic, self).__init__(**kw)