fix recorder module

This commit is contained in:
Ryan Pessa 2014-07-16 10:53:48 -05:00
parent df95b43451
commit 8cae1820bf
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,8 @@ For normal module usage, please see the :mod:`~kivy.modules` documentation.
'''
from kivy.input.recorder import Recorder
__all__ = ('start', 'stop')
from kivy.logger import Logger
from functools import partial
@ -86,6 +87,7 @@ def start(win, ctx):
if value is not None:
keys['filename'] = value
from kivy.input.recorder import Recorder
ctx.recorder = Recorder(window=win, **keys)
win.bind(on_key_down=partial(on_recorder_key, ctx.recorder))