2022-01-24 19:08:33 +08:00

31 lines
404 B
Python

import PikaStdLib
import PikaStdDevice
import PikaStdData
import GTestTask
import PikaMath
from PikaObj import *
def todo1():
print('task 1 running...')
def todo2():
print('task 2 running...')
def todo3():
print('task 3 running...')
def when3():
return True
task = GTestTask.Task()
task.call_always(todo1)
task.call_always(todo2)
# task.call_when(todo3, when3)
task.run_once()