Thank you very much, everything works. Please tell me how to make the window redraws every N-seconds or event, such as the selection of the object in the scene. I believe this requires a global procedure with a timer, but to understand how it works, I can not.