|
|
|
@ -256,4 +256,11 @@ def loop(): |
|
|
|
connect_and_join() |
|
|
|
connect_and_join() |
|
|
|
print "---------------------------" |
|
|
|
print "---------------------------" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def callAt(func,_time,*args): |
|
|
|
|
|
|
|
s=time.time()-_time |
|
|
|
|
|
|
|
def run(): |
|
|
|
|
|
|
|
if s>0: |
|
|
|
|
|
|
|
time.sleep(s) |
|
|
|
|
|
|
|
func(*args) |
|
|
|
|
|
|
|
threading.Thread(target=run).start() |
|
|
|
|
|
|
|
|
|
|
|
|