I am very new to Python. I'm creating a simple 3D world using Vizard 4.0 and I want to add a stopwatch to the screen. I dont want an actual 3D stopwatch, just a simple text box in the corner of the screen which updates as the stopwatch counts. Heres what I ave so far and it doesnt work, any suggestions or help would be very appreciated!
def mytimer(num):
time = 'Elapsed time:',viz.elapsed(),'seconds'
print time
timer_update = viz.addText('Time:', viz.SCREEN)
timer_update.color(viz.GREEN)
timer_update.fontSize(42)
viz.callback(viz.TIMER_EVENT,mytimer)
viz.starttimer(0,1, viz.FOREVER)