I had the same problem, I solve it by starting the message variable in this way
Quote:
#starting variable
gScreenTextObj = vizinfo.add( "" )
#change the valor
def keyPressed_1():
global gScreenTextObj
gScreenTextObj.message('1 pressed')
vizact.onkeydown('1', keyPressed_1 )
|