示例#1
0
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()
示例#2
0
 def __init__(self, sandbox):
     ExceptionManagerBase.__init__(self)
     self.sandbox = sandbox
示例#3
0
 def __init__(self, sandbox):
     ExceptionManagerBase.__init__(self)
     self.sandbox = sandbox