Timer overhaul: update tests
This commit is contained in:
parent
5d41292bf6
commit
cec76b63dc
78 changed files with 521 additions and 495 deletions
|
|
@ -22,8 +22,8 @@ ui.append(caption)
|
|||
print("Script started. Window should appear unless --headless was specified.")
|
||||
|
||||
# Exit after 2 seconds
|
||||
def exit_test(runtime):
|
||||
def exit_test(timer, runtime):
|
||||
print("Test complete. Exiting.")
|
||||
sys.exit(0)
|
||||
|
||||
mcrfpy.setTimer("exit", exit_test, 2000)
|
||||
exit_timer = mcrfpy.Timer("exit", exit_test, 2000, once=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue