Files
JIMRI/jython/test/ThreadingExampleTest.py
2026-06-17 14:00:51 +02:00

14 lines
347 B
Python

# Test the ThreadingExample.py script
print ("The ThreadingExample script will print a line about running on the GUI thread")
execfile("jython/ThreadingExample.py")
# just confirm that this runs OK in headless mode (when graphical, it prompts)
te = ThreadingExample()
te.start()
# time to run
from time import sleep
sleep(0.020)
# stops itself