Jan-18-2019, 04:12 PM
I don't know about pyjamas, but since it looks like it's just a python-javascript compatability layer, I'm not sure it would make sense to re-build the dom every x seconds. You could use the Timer class to do background tasks: http://pyjs.org/api/library.pyjamas.Time...class.html
The Asteroids example also uses a Canvas class, which has a
The Asteroids example also uses a Canvas class, which has a
draw()
method that might get called every frame. But I don't actually see the Canvas class in the docs anywhere.