Merge pull request #2344 from kived/fix-recorder

fix recorder module
This commit is contained in:
Gabriel Pettier 2014-07-16 17:57:01 +02:00
commit 24a06ffb20
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))