Exemple #1
0
 def f(i):
     v = _async.call_from_main_thread_and_wait(m, 'foo')
     _async.call_from_main_thread(print, "v: %s" % v)
Exemple #2
0
 def cb(r):
     _async.call_from_main_thread(d.__setitem__, ('result', r*2))
Exemple #3
0
 def f(i):
     r = i * 2
     s = "result: %d" % r
     _async.call_from_main_thread(print, s)
Exemple #4
0
 def decorator(*_args, **_kwds):
     _async.call_from_main_thread(f, _args, _kwds)
Exemple #5
0
 def cb(r):
     s = "result x 2 = %d" % (r * 2)
     _async.call_from_main_thread(print, s)
Exemple #6
0
 def decorator(*_args, **_kwds):
     _async.call_from_main_thread(f, _args, _kwds)
Exemple #7
0
 def f(i):
     r = i * 2
     s = "result: %d" % r
     _async.call_from_main_thread(print, s)
Exemple #8
0
 def cb(r):
     _async.call_from_main_thread(d.__setitem__, ('result', r * 2))
Exemple #9
0
 def cb(r):
     s = "result x 2 = %d" % (r * 2)
     _async.call_from_main_thread(print, s)
Exemple #10
0
 def f(i):
     v = _async.call_from_main_thread_and_wait(m, 'foo')
     _async.call_from_main_thread(print, "v: %s" % v)