Timed changing message on screen
Hi,
I'm trying to get a 'stop' message appear on the screen 10 seconds into the program, which waits for a second and then changes to 'go'. I've had various attempts and whilst I can get the intial message up (whether it starts off as go or appears at 10s in as stop), it won't change over to the other message. This is one example of code used: Code:
#Stop and go message Code:
|
you could use the following
Code:
#Stop and go message |
Cheers Jeff - you're a star! I have got another problem though - all of a sudden the output data will not write to the specified file - it was fine and then suddenly stopped working. The code I have is as follows:
Code:
directory = 'Y:\backup\Vizard30\resources\road' Traceback (most recent call last): File " File "roadldstop.py", line 167, in ? file = open(filename, 'w') IOError: [Errno 2] No such file or directory: 'Y:\x08ackup\\Vizard30\resources\roadspeed_.txt222 2' I know the path exists so is this message because it's trying to create a temporary file when outputting the data? |
No worries Jeff - sorted it out and now working :)
|
All times are GMT -7. The time now is 02:30 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC