def kivy_exception_manager(): from kivy.context import Context from kivy.base import ExceptionManagerBase, ExceptionManager context = Context(init=False) context['ExceptionManager'] = ExceptionManagerBase() context.push() try: yield ExceptionManager finally: context.pop()
def __init__(self, sandbox): ExceptionManagerBase.__init__(self) self.sandbox = sandbox