Changeset 40:ec5dde8a6ff6 in xplra for test/basictest.py
- Timestamp:
- 02/14/13 18:21:47 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/basictest.py
r36 r40 1 1 # Basic test program for the Python client library 2 3 #------------------------------------------------------------------------------ 4 5 import time 2 6 3 7 #------------------------------------------------------------------------------ … … 12 16 xplane.connect() 13 17 print "Connected to X-Plane." 18 print 19 20 print "Showing a message..." 21 xplane.showMessage("[basictest] Starting tests", 5.0) 14 22 print 15 23 … … 133 141 print 134 142 143 print "Preparing for the message tests, sleeping for 5 seconds..." 144 time.sleep(5.0) 145 146 print "Showing a message for 10 seconds..." 147 xplane.showMessage("[basictest] this message appears for 10 seconds", 10.0) 148 149 print "Sleeping for 3 seconds..." 150 time.sleep(3.0) 151 152 print "Showing another message interrupting the previous one for 3 seconds" 153 xplane.showMessage("[basictest] but this message interrupts it, and is displayed for 3 seconds", 3.0) 154 155 print "Sleeping for 5 seconds..." 156 time.sleep(5.0) 157 xplane.showMessage("[basictest] and the tests come to an end!", 5.0) 135 158 136 159 except Exception as e:
Note:
See TracChangeset
for help on using the changeset viewer.